Tailwind CSS v3 color

Tailwind amber-950 #451A03

Tailwind CSS v3's amber-950 is #451A03. It is a very dark muted brown in the brown family. In OKLCH it sits at lightness 0.279, chroma 0.074 and hue 45.6°. The nearest CSS named color is maroon (#800000), ΔE2000 13.7 away.

Relative luminance
0.0201
OKLCH L · C · h
0.279 · 0.074 · 45.6
Best text
White 14.97:1
Hue family
Brown

#451A03 color codes

HEX
#451A03
RGB
rgb(69, 26, 3)
HSL
hsl(21, 92%, 14%)
OKLCH
oklch(0.279 0.074 45.6)
OKLab
oklab(0.279 0.052 0.053)
CIELAB (D65)
L* 15.54, a* 19.19, b* 22.16
XYZ (D65)
X 2.84, Y 2.01, Z 0.32
CMYK (naive)
cmyk(0%, 62%, 96%, 73%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #451A03 accessible?

White text on it reaches 14.97:1, passing AAA. Black text fails at 1.40:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    1.40:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.40:1

  • White text on it

    14.97:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −104
  • As text on black

    1.40:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.40:1

  • As text on white

    14.97:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +101

Nearest versions that pass 4.5:1

  • For text on white

    #451A03 14.97:1

    It already reaches 14.97:1 on white, so no change is needed.

  • For text on black

    #9C6952 4.55:1

    Lightening its OKLCH lightness from 0.28 to 0.57 reaches 4.55:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #451A03 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #451A03

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #451A03 sits at step 900.

  1. 50#FFF2EC
    White
    1.09
    Black
    19.16
  2. 100#FFE5D9
    White
    1.20
    Black
    17.46
  3. 200#FDCBB4
    White
    1.46
    Black
    14.37
  4. 300#E5B099
    White
    1.90
    Black
    11.00
  5. 400#C8947B
    White
    2.63
    Black
    7.97
  6. 500#AC7860
    White
    3.74
    Black
    5.60
  7. 600#93614A
    White
    5.18
    Black
    4.04
  8. 700#794B35
    White
    7.31
    Black
    2.87
  9. 800#5D331F
    White
    10.72
    Black
    1.95
  10. 900This color#451A03
    White
    14.97
    Black
    1.40
  11. 950#2A0C00
    White
    18.24
    Black
    1.15

Under each step, white and black text on it; a bold figure passes 4.5:1.

Tailwind CSS v3 amber scale

The real Tailwind palette, for comparison with the computed ramp above.

  1. 50#FFFBEB
    White
    1.03
    Black
    20.25
  2. 100#FEF3C7
    White
    1.11
    Black
    18.85
  3. 200#FDE68A
    White
    1.24
    Black
    16.86
  4. 300#FCD34D
    White
    1.44
    Black
    14.56
  5. 400#FBBF24
    White
    1.66
    Black
    12.57
  6. 500#F59E0B
    White
    2.14
    Black
    9.77
  7. 600#D97706
    White
    3.18
    Black
    6.59
  8. 700#B45309
    White
    5.02
    Black
    4.18
  9. 800#92400E
    White
    7.09
    Black
    2.96
  10. 900#78350F
    White
    9.07
    Black
    2.31
  11. 950This color#451A03
    White
    14.97
    Black
    1.40

Gamut

How vivid #451A03 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.079; #451A03 uses 93% of it. Display P3, which many recent phones and laptops show, reaches 0.090 there: 13% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.074
sRGB edge
0.079
Display P3 edge
0.090
Rec. 2020 edge
0.091
Dominant wavelength
594 nm
Excitation purity
83%
Chromaticity
x 0.5488, y 0.3885
  • This color#451A03
  • Most vivid in sRGB#471800
  • Most vivid in Display P3oklch(0.279 0.090 45.6)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #451a03;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.2669 0.0954 0); }
}

Mixing

Mixing #451A03

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#A28D81
  • OKLab50%#A0857A
  • OKLCH50%#A0857A

Black #000000

  • sRGB50%#230D02
  • OKLab50%#150400
  • OKLCH50%#150400

Its complement #002E3D

  • sRGB50%#232420
  • OKLab50%#2D2725
  • OKLCH50%#351E3E
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #451a03, white);
color: color-mix(in oklch, #451a03 50%, white);

In use

#451A03 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:114.97:1 Passes
  • Link and body-size textText, 4.5:114.97:1 Passes
  • Large headingLarge text, 3:114.97:1 Passes
  • Icons, borders and focus ringsNon-text, 3:114.97:1 Passes

Dark page

  • Button labelText, 4.5:114.97:1 Passes
  • Link and body-size textText, 4.5:11.25:1 Fails
  • Large headingLarge text, 3:11.25:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.25:1 Fails

For text on this page, the nearest shade that passes is #A5725A 4.59:1

Color vision

How #451A03 looks with color blindness

Achromatopsia changes it most, ΔE2000 19.6; tritanopia changes it least, 9.5.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #262101 ΔE2000 19.1

    Distinct

    Reads as very dark grayish yellow

  • Deuteranopia

    No working green (medium-wavelength) cones

    #312B02 ΔE2000 19.2

    Distinct

    Reads as very dark muted yellow

  • Tritanopia

    No working blue (short-wavelength) cones

    #4D1015 ΔE2000 9.5

    Noticeable

    Reads as very dark muted brown

  • Achromatopsia

    No cone color vision; lightness only

    #272727 ΔE2000 19.6

    Distinct

    Reads as near-black

Pairing check

Checked against its complement, #002E3D. Their lightness contrast is only 1.03:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#451A03 · #002E3D34.9Stays distinct
Protanopia#262101 · #262D3E24.5Stays distinct
Deuteranopia#312B02 · #1E273D29.8Stays distinct
Tritanopia#4D1015 · #00323338.9Stays distinct
Achromatopsia#272727 · #2A2A2A0.9Easily confused

Harmony

Color harmonies for #451A03

Its complement is #002E3D, a very dark muted blue, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#451A03
  • Complement#002E3D

Complementary

Open in Harmony Studio
  • −30°#46161C
  • Base#451A03
  • +30°#392400
  • Base#451A03
  • +120°#003122
  • +240°#26224B
  • Base#451A03
  • +150°#003030
  • +210°#0C284C

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-amber-950: #451a03;
}

Tailwind config

// tailwind.config.js — already built in as amber-950;
// pin the v3 value explicitly like this:
module.exports = {
  theme: {
    extend: {
      colors: {
        amber: { 950: '#451a03' },
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  /* v4 has its own amber-950; this pins the v3 value. */
  --color-amber-950: oklch(0.279 0.074 45.6);
}

Design token (W3C DTCG)

{
  "color": {
    "amber-950": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.2706, 0.102, 0.0118],
        "hex": "#451a03"
      },
      "$description": "Tailwind CSS v3 amber-950"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let amber950 = Color(.sRGB, red: 0.271, green: 0.102, blue: 0.012, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Amber950 = Color(0xFF451A03)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #451A03 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.