#403F08#403F08

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

Color values

HEX#403F08
RGBrgb(64, 63, 8)
HSLhsl(59, 78%, 14%)
HSVhsv(59, 88%, 25%)
CMYKcmyk(0%, 1.6%, 87.5%, 74.9%)
CIE-LABlab(25.75, -6.98, 31.21)
CIE-LCHlch(25.75, 31.98, 102.61°)
OKLaboklab(35.75% -0.0227 0.068)
OKLCHoklch(35.75% 0.072 108.4)
XYZxyz(3.9358, 4.6627, 0.9223)
Luminance0.0466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F08 #080940
analogous
#402308 #403F08 #254008
triadic
#403F08 #08403F #3F0840
tetradic
#403F08 #084023 #080940 #400825
square
#403F08 #084023 #080940 #400825
split-complementary
#403F08 #082540 #230840
monochromatic
#1B1B03 #1B1B03 #403F08 #76750F #ADAA16

Accessibility & contrast

On white

10.87
#403F08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403F08
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F08#FFFFFF#000000##FFFFFF
##403F081.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403f08;
/* rgb */ color: rgb(64, 63, 8);
/* oklch */ color: oklch(35.8% 0.072 108.4);
Tailwind
colors: {
  custom: {
    50: '#77734d',
    500: '#403f08',
    950: '#000000',
  },
}
SCSS
$custom: #403f08;
$custom-light: #77734d;
$custom-dark: #000000;
JSON
{
  "hex": "#403f08",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 8
  },
  "hsl": {
    "h": 58.929,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.35753,
    "c": 0.0717,
    "h": 108.4
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

primary
#403F08
secondary
#25277E
accent
#37F434
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090801
muted
#7B7B77

Preview Lab

Preview with #403F08

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

Preview Lab → · Contrast checker → · Palette generator →

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