#403C0C#403C0C

#403C0C is a dark, moderate yellow. Relative luminance 0.043; OKLCH L 35.0% C 0.066 H 104.5°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#403C0C
RGBrgb(64, 60, 12)
HSLhsl(55, 68%, 15%)
HSVhsv(55, 81%, 25%)
CMYKcmyk(0%, 6.2%, 81.2%, 74.9%)
CIE-LABlab(24.79, -4.90, 28.63)
CIE-LCHlch(24.79, 29.04, 99.72°)
OKLaboklab(35% -0.0164 0.0635)
OKLCHoklch(35% 0.066 104.5)
XYZxyz(3.7967, 4.3484, 0.9871)
Luminance0.0435 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C0C #0C1040
analogous
#40220C #403C0C #2A400C
triadic
#403C0C #0C403C #3C0C40
tetradic
#403C0C #0C4022 #0C1040 #400C2A
square
#403C0C #0C4022 #0C1040 #400C2A
split-complementary
#403C0C #0C2A40 #220C40
monochromatic
#1A1805 #1A1805 #403C0C #746C16 #A79D1F

Accessibility & contrast

On white

11.23
#403C0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403C0C
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C0C#FFFFFF#000000##FFFFFF
##403C0C1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403c0c;
/* rgb */ color: rgb(64, 60, 12);
/* oklch */ color: oklch(35.0% 0.066 104.5);
Tailwind
colors: {
  custom: {
    50: '#77714e',
    500: '#403c0c',
    950: '#000000',
  },
}
SCSS
$custom: #403c0c;
$custom-light: #77714e;
$custom-dark: #000000;
JSON
{
  "hex": "#403c0c",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 12
  },
  "hsl": {
    "h": 55.385,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.34997,
    "c": 0.06554,
    "h": 104.5
  },
  "luminance": 0.04348
}

Semantic roles & 50–950 ramp

primary
#403C0C
secondary
#2C327C
accent
#4AEB3D
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #403C0C

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

Preview Lab → · Contrast checker → · Palette generator →

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