#403C0F#403C0F

#403C0F is a dark, moderate yellow. Relative luminance 0.044; OKLCH L 35.0% C 0.063 H 104.2°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#403C0F
RGBrgb(64, 60, 15)
HSLhsl(55, 62%, 15%)
HSVhsv(55, 77%, 25%)
CMYKcmyk(0%, 6.2%, 76.6%, 74.9%)
CIE-LABlab(24.82, -4.71, 27.25)
CIE-LCHlch(24.82, 27.65, 99.81°)
OKLaboklab(35.03% -0.0155 0.0612)
OKLCHoklch(35.03% 0.063 104.2)
XYZxyz(3.8166, 4.3563, 1.0917)
Luminance0.0436 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C0F #0F1340
analogous
#40230F #403C0F #2B400F
triadic
#403C0F #0F403C #3C0F40
tetradic
#403C0F #0F4023 #0F1340 #400F2B
square
#403C0F #0F4023 #0F1340 #400F2B
split-complementary
#403C0F #0F2B40 #230F40
monochromatic
#191706 #191706 #403C0F #726A1B #A39926

Accessibility & contrast

On white

11.22
#403C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#403C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C0F
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C0F#FFFFFF#000000##FFFFFF
##403C0F1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A09
Deuteranopia (green-blind)
#433C12
Tritanopia (blue-blind)
#453733
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #403c0f;
/* rgb */ color: rgb(64, 60, 15);
/* oklch */ color: oklch(35.0% 0.063 104.2);
Tailwind
colors: {
  custom: {
    50: '#777150',
    500: '#403c0f',
    950: '#000000',
  },
}
SCSS
$custom: #403c0f;
$custom-light: #777150;
$custom-dark: #000000;
JSON
{
  "hex": "#403c0f",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 15
  },
  "hsl": {
    "h": 55.102,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.35025,
    "c": 0.06309,
    "h": 104.2
  },
  "luminance": 0.04356
}

Semantic roles & 50–950 ramp

primary
#403C0F
secondary
#30367A
accent
#50E543
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #403C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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