#403F15#403F15

#403F15 is a dark, moderate yellow. Relative luminance 0.047; OKLCH L 35.9% C 0.061 H 107.8°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#403F15
RGBrgb(64, 63, 21)
HSLhsl(59, 51%, 17%)
HSVhsv(59, 67%, 25%)
CMYKcmyk(0%, 1.6%, 67.2%, 74.9%)
CIE-LABlab(25.86, -6.12, 25.27)
CIE-LCHlch(25.86, 26.00, 103.61°)
OKLaboklab(35.88% -0.0187 0.0581)
OKLCHoklch(35.88% 0.061 107.8)
XYZxyz(4.0273, 4.6993, 1.4042)
Luminance0.0470 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F15 #151640
analogous
#402A15 #403F15 #2C4015
triadic
#403F15 #15403F #3F1540
tetradic
#403F15 #15402A #151640 #40152C
square
#403F15 #15402A #151640 #40152C
split-complementary
#403F15 #152C40 #2A1540
monochromatic
#171708 #171708 #403F15 #6E6C24 #9C9A33

Accessibility & contrast

On white

10.83
#403F15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403F15
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F15#FFFFFF#000000##FFFFFF
##403F151.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403f15;
/* rgb */ color: rgb(64, 63, 21);
/* oklch */ color: oklch(35.9% 0.061 107.8);
Tailwind
colors: {
  custom: {
    50: '#767354',
    500: '#403f15',
    950: '#000000',
  },
}
SCSS
$custom: #403f15;
$custom-light: #767354;
$custom-dark: #000000;
JSON
{
  "hex": "#403f15",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 21
  },
  "hsl": {
    "h": 58.605,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.35875,
    "c": 0.06099,
    "h": 107.8
  },
  "luminance": 0.04699
}

Semantic roles & 50–950 ramp

primary
#403F15
secondary
#393B78
accent
#51DA4E
background
#F7F7F4
surface
#EDEDE8
border
#C8C8C4
text
#090803
muted
#7B7B78

Preview Lab

Preview with #403F15

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

Preview Lab → · Contrast checker → · Palette generator →

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