#403F17#403F17

#403F17 is a dark, muted yellow. Relative luminance 0.047; OKLCH L 35.9% C 0.059 H 107.7°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#403F17
RGBrgb(64, 63, 23)
HSLhsl(59, 47%, 17%)
HSVhsv(59, 64%, 25%)
CMYKcmyk(0%, 1.6%, 64.1%, 74.9%)
CIE-LABlab(25.88, -5.94, 24.21)
CIE-LCHlch(25.88, 24.92, 103.79°)
OKLaboklab(35.9% -0.0179 0.0561)
OKLCHoklch(35.9% 0.059 107.7)
XYZxyz(4.0466, 4.7070, 1.5058)
Luminance0.0471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F17 #171840
analogous
#402B17 #403F17 #2D4017
triadic
#403F17 #17403F #3F1740
tetradic
#403F17 #17402B #171840 #40172D
square
#403F17 #17402B #171840 #40172D
split-complementary
#403F17 #172D40 #2B1740
monochromatic
#171608 #171608 #403F17 #6D6B27 #9A9837

Accessibility & contrast

On white

10.82
#403F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#403F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F17
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F17#FFFFFF#000000##FFFFFF
##403F171.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443C13
Deuteranopia (green-blind)
#453E19
Tritanopia (blue-blind)
#453B36
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403f17;
/* rgb */ color: rgb(64, 63, 23);
/* oklch */ color: oklch(35.9% 0.059 107.7);
Tailwind
colors: {
  custom: {
    50: '#767356',
    500: '#403f17',
    950: '#000000',
  },
}
SCSS
$custom: #403f17;
$custom-light: #767356;
$custom-dark: #000000;
JSON
{
  "hex": "#403f17",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 23
  },
  "hsl": {
    "h": 58.537,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.35901,
    "c": 0.05889,
    "h": 107.7
  },
  "luminance": 0.04707
}

Semantic roles & 50–950 ramp

primary
#403F17
secondary
#3C3D77
accent
#54D751
background
#F7F7F5
surface
#EDEDE9
border
#C8C8C5
text
#090803
muted
#7B7B78

Preview Lab

Preview with #403F17

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

Preview Lab → · Contrast checker → · Palette generator →

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