#403F0F#403F0F

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

Color values

HEX#403F0F
RGBrgb(64, 63, 15)
HSLhsl(59, 62%, 15%)
HSVhsv(59, 77%, 25%)
CMYKcmyk(0%, 1.6%, 76.6%, 74.9%)
CIE-LABlab(25.80, -6.58, 28.25)
CIE-LCHlch(25.80, 29.00, 103.11°)
OKLaboklab(35.81% -0.0208 0.0633)
OKLCHoklch(35.81% 0.067 108.2)
XYZxyz(3.9782, 4.6796, 1.1455)
Luminance0.0468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F0F #0F1040
analogous
#40260F #403F0F #28400F
triadic
#403F0F #0F403F #3F0F40
tetradic
#403F0F #0F4026 #0F1040 #400F28
square
#403F0F #0F4026 #0F1040 #400F28
split-complementary
#403F0F #0F2840 #260F40
monochromatic
#191806 #191806 #403F0F #72701B #A3A126

Accessibility & contrast

On white

10.85
#403F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403F0F
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F0F#FFFFFF#000000##FFFFFF
##403F0F1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403f0f;
/* rgb */ color: rgb(64, 63, 15);
/* oklch */ color: oklch(35.8% 0.067 108.2);
Tailwind
colors: {
  custom: {
    50: '#777351',
    500: '#403f0f',
    950: '#000000',
  },
}
SCSS
$custom: #403f0f;
$custom-light: #777351;
$custom-dark: #000000;
JSON
{
  "hex": "#403f0f",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 15
  },
  "hsl": {
    "h": 58.776,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.3581,
    "c": 0.06659,
    "h": 108.2
  },
  "luminance": 0.04679
}

Semantic roles & 50–950 ramp

primary
#403F0F
secondary
#30327A
accent
#46E543
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #403F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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