#40400C#40400C

#40400C is a dark, moderate yellow. Relative luminance 0.048; OKLCH L 36.0% C 0.070 H 109.5°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#40400C
RGBrgb(64, 64, 12)
HSLhsl(60, 68%, 15%)
HSVhsv(60, 81%, 25%)
CMYKcmyk(0%, 0%, 81.2%, 74.9%)
CIE-LABlab(26.11, -7.38, 29.90)
CIE-LCHlch(26.11, 30.80, 103.86°)
OKLaboklab(36.05% -0.0234 0.0661)
OKLCHoklch(36.05% 0.07 109.5)
XYZxyz(4.0143, 4.7834, 1.0596)
Luminance0.0478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40400C #0C0C40
analogous
#40260C #40400C #26400C
triadic
#40400C #0C4040 #400C40
tetradic
#40400C #0C4026 #0C0C40 #400C26
square
#40400C #0C4026 #0C0C40 #400C26
split-complementary
#40400C #0C2640 #260C40
monochromatic
#1A1A05 #1A1A05 #40400C #747416 #A7A71F

Accessibility & contrast

On white

10.73
#40400C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#40400C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40400C
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40400C#FFFFFF#000000##FFFFFF
##40400C1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D04
Deuteranopia (green-blind)
#463F10
Tritanopia (blue-blind)
#453B36
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40400c;
/* rgb */ color: rgb(64, 64, 12);
/* oklch */ color: oklch(36.0% 0.070 109.5);
Tailwind
colors: {
  custom: {
    50: '#77744f',
    500: '#40400c',
    950: '#000000',
  },
}
SCSS
$custom: #40400c;
$custom-light: #77744f;
$custom-dark: #000000;
JSON
{
  "hex": "#40400c",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 60,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.36047,
    "c": 0.07015,
    "h": 109.5
  },
  "luminance": 0.04783
}

Semantic roles & 50–950 ramp

primary
#40400C
secondary
#2C2C7C
accent
#3DEB3D
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #40400C

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

Preview Lab → · Contrast checker → · Palette generator →

#40400C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva