#403F0B#403F0B

#403F0B is a dark, moderate yellow. Relative luminance 0.047; OKLCH L 35.8% C 0.070 H 108.3°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#403F0B
RGBrgb(64, 63, 11)
HSLhsl(59, 71%, 15%)
HSVhsv(59, 83%, 25%)
CMYKcmyk(0%, 1.6%, 82.8%, 74.9%)
CIE-LABlab(25.77, -6.82, 30.00)
CIE-LCHlch(25.77, 30.77, 102.81°)
OKLaboklab(35.78% -0.0219 0.0661)
OKLCHoklch(35.78% 0.07 108.3)
XYZxyz(3.9524, 4.6693, 1.0096)
Luminance0.0467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F0B #0B0C40
analogous
#40250B #403F0B #27400B
triadic
#403F0B #0B403F #3F0B40
tetradic
#403F0B #0B4025 #0B0C40 #400B27
square
#403F0B #0B4025 #0B0C40 #400B27
split-complementary
#403F0B #0B2740 #250B40
monochromatic
#1A1A04 #1A1A04 #403F0B #747214 #A8A61D

Accessibility & contrast

On white

10.86
#403F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#403F0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F0B
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F0B#FFFFFF#000000##FFFFFF
##403F0B1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C03
Deuteranopia (green-blind)
#463E0F
Tritanopia (blue-blind)
#453A35
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403f0b;
/* rgb */ color: rgb(64, 63, 11);
/* oklch */ color: oklch(35.8% 0.070 108.3);
Tailwind
colors: {
  custom: {
    50: '#77734e',
    500: '#403f0b',
    950: '#000000',
  },
}
SCSS
$custom: #403f0b;
$custom-light: #77734e;
$custom-dark: #000000;
JSON
{
  "hex": "#403f0b",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 11
  },
  "hsl": {
    "h": 58.868,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.35775,
    "c": 0.06968,
    "h": 108.3
  },
  "luminance": 0.04669
}

Semantic roles & 50–950 ramp

primary
#403F0B
secondary
#2A2C7D
accent
#3EED3A
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #403F0B

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

Preview Lab → · Contrast checker → · Palette generator →

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