#403E0B#403E0B

#403E0B is a dark, moderate yellow. Relative luminance 0.046; OKLCH L 35.5% C 0.069 H 107.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#403E0B
RGBrgb(64, 62, 11)
HSLhsl(58, 71%, 15%)
HSVhsv(58, 83%, 25%)
CMYKcmyk(0%, 3.1%, 82.8%, 74.9%)
CIE-LABlab(25.44, -6.21, 29.69)
CIE-LCHlch(25.44, 30.33, 101.81°)
OKLaboklab(35.51% -0.0202 0.0655)
OKLCHoklch(35.51% 0.069 107.1)
XYZxyz(3.8975, 4.5595, 0.9913)
Luminance0.0456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E0B #0B0D40
analogous
#40240B #403E0B #28400B
triadic
#403E0B #0B403E #3E0B40
tetradic
#403E0B #0B4024 #0B0D40 #400B28
square
#403E0B #0B4024 #0B0D40 #400B28
split-complementary
#403E0B #0B2840 #240B40
monochromatic
#1A1904 #1A1904 #403E0B #747114 #A8A31D

Accessibility & contrast

On white

10.98
#403E0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#403E0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E0B
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E0B#FFFFFF#000000##FFFFFF
##403E0B1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B03
Deuteranopia (green-blind)
#453D0F
Tritanopia (blue-blind)
#453934
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403e0b;
/* rgb */ color: rgb(64, 62, 11);
/* oklch */ color: oklch(35.5% 0.069 107.1);
Tailwind
colors: {
  custom: {
    50: '#77734e',
    500: '#403e0b',
    950: '#000000',
  },
}
SCSS
$custom: #403e0b;
$custom-light: #77734e;
$custom-dark: #000000;
JSON
{
  "hex": "#403e0b",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 11
  },
  "hsl": {
    "h": 57.736,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.35512,
    "c": 0.06851,
    "h": 107.1
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#403E0B
secondary
#2A2D7D
accent
#41ED3A
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #403E0B

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

Preview Lab → · Contrast checker → · Palette generator →

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