#403B0C#403B0C

#403B0C is a dark, moderate yellow. Relative luminance 0.042; OKLCH L 34.7% C 0.064 H 103.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#403B0C
RGBrgb(64, 59, 12)
HSLhsl(54, 68%, 15%)
HSVhsv(54, 81%, 25%)
CMYKcmyk(0%, 7.8%, 81.2%, 74.9%)
CIE-LABlab(24.46, -4.28, 28.31)
CIE-LCHlch(24.46, 28.63, 98.59°)
OKLaboklab(34.74% -0.0146 0.0628)
OKLCHoklch(34.74% 0.064 103.1)
XYZxyz(3.7448, 4.2446, 0.9698)
Luminance0.0424 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403B0C #0C1140
analogous
#40210C #403B0C #2B400C
triadic
#403B0C #0C403B #3B0C40
tetradic
#403B0C #0C4021 #0C1140 #400C2B
square
#403B0C #0C4021 #0C1140 #400C2B
split-complementary
#403B0C #0C2B40 #210C40
monochromatic
#1A1805 #1A1805 #403B0C #746B16 #A79A1F

Accessibility & contrast

On white

11.36
#403B0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#403B0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403B0C
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403B0C#FFFFFF#000000##FFFFFF
##403B0C1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413905
Deuteranopia (green-blind)
#433B0F
Tritanopia (blue-blind)
#453632
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #403b0c;
/* rgb */ color: rgb(64, 59, 12);
/* oklch */ color: oklch(34.7% 0.064 103.1);
Tailwind
colors: {
  custom: {
    50: '#77704e',
    500: '#403b0c',
    950: '#000000',
  },
}
SCSS
$custom: #403b0c;
$custom-light: #77704e;
$custom-dark: #000000;
JSON
{
  "hex": "#403b0c",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 12
  },
  "hsl": {
    "h": 54.231,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.34737,
    "c": 0.06445,
    "h": 103.1
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#403B0C
secondary
#2C337C
accent
#4DEB3D
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #403B0C

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#403B0C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva