#403E17#403E17

#403E17 is a dark, muted yellow. Relative luminance 0.046; OKLCH L 35.6% C 0.058 H 106.3°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#403E17
RGBrgb(64, 62, 23)
HSLhsl(57, 47%, 17%)
HSVhsv(57, 64%, 25%)
CMYKcmyk(0%, 3.1%, 64.1%, 74.9%)
CIE-LABlab(25.55, -5.32, 23.84)
CIE-LCHlch(25.55, 24.42, 102.58°)
OKLaboklab(35.64% -0.0161 0.0553)
OKLCHoklch(35.64% 0.058 106.3)
XYZxyz(3.9918, 4.5972, 1.4875)
Luminance0.0460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E17 #171940
analogous
#402A17 #403E17 #2E4017
triadic
#403E17 #17403E #3E1740
tetradic
#403E17 #17402A #171940 #40172E
square
#403E17 #17402A #171940 #40172E
split-complementary
#403E17 #172E40 #2A1740
monochromatic
#171608 #171608 #403E17 #6D6A27 #9A9537

Accessibility & contrast

On white

10.94
#403E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#403E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E17
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E17#FFFFFF#000000##FFFFFF
##403E171.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433C13
Deuteranopia (green-blind)
#443D19
Tritanopia (blue-blind)
#453A35
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403e17;
/* rgb */ color: rgb(64, 62, 23);
/* oklch */ color: oklch(35.6% 0.058 106.3);
Tailwind
colors: {
  custom: {
    50: '#767355',
    500: '#403e17',
    950: '#000000',
  },
}
SCSS
$custom: #403e17;
$custom-light: #767355;
$custom-dark: #000000;
JSON
{
  "hex": "#403e17",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 23
  },
  "hsl": {
    "h": 57.073,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.35639,
    "c": 0.05761,
    "h": 106.3
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#403E17
secondary
#3C3F77
accent
#58D751
background
#F7F6F5
surface
#EDECE9
border
#C8C7C5
text
#090803
muted
#7B7B78

Preview Lab

Preview with #403E17

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

Preview Lab → · Contrast checker → · Palette generator →

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