#403F12#403F12

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

Color values

HEX#403F12
RGBrgb(64, 63, 18)
HSLhsl(59, 56%, 16%)
HSVhsv(59, 72%, 25%)
CMYKcmyk(0%, 1.6%, 71.9%, 74.9%)
CIE-LABlab(25.83, -6.36, 26.80)
CIE-LCHlch(25.83, 27.55, 103.35°)
OKLaboklab(35.84% -0.0198 0.0608)
OKLCHoklch(35.84% 0.064 108)
XYZxyz(4.0012, 4.6888, 1.2664)
Luminance0.0469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F12 #121340
analogous
#402812 #403F12 #2A4012
triadic
#403F12 #12403F #3F1240
tetradic
#403F12 #124028 #121340 #40122A
square
#403F12 #124028 #121340 #40122A
split-complementary
#403F12 #122A40 #281240
monochromatic
#181807 #181807 #403F12 #706E1F #A09D2D

Accessibility & contrast

On white

10.84
#403F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403F12
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F12#FFFFFF#000000##FFFFFF
##403F121.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C0C
Deuteranopia (green-blind)
#453E15
Tritanopia (blue-blind)
#453B36
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403f12;
/* rgb */ color: rgb(64, 63, 18);
/* oklch */ color: oklch(35.8% 0.064 108.0);
Tailwind
colors: {
  custom: {
    50: '#777352',
    500: '#403f12',
    950: '#000000',
  },
}
SCSS
$custom: #403f12;
$custom-light: #777352;
$custom-dark: #000000;
JSON
{
  "hex": "#403f12",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 18
  },
  "hsl": {
    "h": 58.696,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.3584,
    "c": 0.06393,
    "h": 108
  },
  "luminance": 0.04689
}

Semantic roles & 50–950 ramp

primary
#403F12
secondary
#353679
accent
#4CDF48
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #403F12

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

Preview Lab → · Contrast checker → · Palette generator →

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