#403F0C#403F0C

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

Color values

HEX#403F0C
RGBrgb(64, 63, 12)
HSLhsl(59, 68%, 15%)
HSVhsv(59, 81%, 25%)
CMYKcmyk(0%, 1.6%, 81.2%, 74.9%)
CIE-LABlab(25.78, -6.77, 29.58)
CIE-LCHlch(25.78, 30.35, 102.88°)
OKLaboklab(35.78% -0.0216 0.0655)
OKLCHoklch(35.78% 0.069 108.3)
XYZxyz(3.9584, 4.6717, 1.0410)
Luminance0.0467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F0C #0C0D40
analogous
#40250C #403F0C #27400C
triadic
#403F0C #0C403F #3F0C40
tetradic
#403F0C #0C4025 #0C0D40 #400C27
square
#403F0C #0C4025 #0C0D40 #400C27
split-complementary
#403F0C #0C2740 #250C40
monochromatic
#1A1905 #1A1905 #403F0C #747216 #A7A41F

Accessibility & contrast

On white

10.86
#403F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403F0C
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F0C#FFFFFF#000000##FFFFFF
##403F0C1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403f0c;
/* rgb */ color: rgb(64, 63, 12);
/* oklch */ color: oklch(35.8% 0.069 108.3);
Tailwind
colors: {
  custom: {
    50: '#77734f',
    500: '#403f0c',
    950: '#000000',
  },
}
SCSS
$custom: #403f0c;
$custom-light: #77734f;
$custom-dark: #000000;
JSON
{
  "hex": "#403f0c",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 12
  },
  "hsl": {
    "h": 58.846,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.35783,
    "c": 0.06896,
    "h": 108.3
  },
  "luminance": 0.04672
}

Semantic roles & 50–950 ramp

primary
#403F0C
secondary
#2C2D7C
accent
#40EB3D
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #403F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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