#40390D#40390D

#40390D is a dark, moderate yellow. Relative luminance 0.040; OKLCH L 34.2% C 0.062 H 100.1°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#40390D
RGBrgb(64, 57, 13)
HSLhsl(52, 66%, 15%)
HSVhsv(52, 80%, 25%)
CMYKcmyk(0%, 10.9%, 79.7%, 74.9%)
CIE-LABlab(23.82, -2.95, 27.21)
CIE-LCHlch(23.82, 27.37, 96.19°)
OKLaboklab(34.23% -0.0108 0.0607)
OKLCHoklch(34.23% 0.062 100.1)
XYZxyz(3.6503, 4.0455, 0.9693)
Luminance0.0404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40390D #0D1440
analogous
#40200D #40390D #2D400D
triadic
#40390D #0D4039 #390D40
tetradic
#40390D #0D4020 #0D1440 #400D2D
square
#40390D #0D4020 #0D1440 #400D2D
split-complementary
#40390D #0D2D40 #200D40
monochromatic
#191705 #191705 #40390D #736617 #A69422

Accessibility & contrast

On white

11.61
#40390D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#40390D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40390D
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40390D#FFFFFF#000000##FFFFFF
##40390D1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3707
Deuteranopia (green-blind)
#413A10
Tritanopia (blue-blind)
#463430
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #40390d;
/* rgb */ color: rgb(64, 57, 13);
/* oklch */ color: oklch(34.2% 0.062 100.1);
Tailwind
colors: {
  custom: {
    50: '#776f4f',
    500: '#40390d',
    950: '#000000',
  },
}
SCSS
$custom: #40390d;
$custom-light: #776f4f;
$custom-dark: #000000;
JSON
{
  "hex": "#40390d",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 13
  },
  "hsl": {
    "h": 51.765,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.34229,
    "c": 0.06161,
    "h": 100.1
  },
  "luminance": 0.04045
}

Semantic roles & 50–950 ramp

primary
#40390D
secondary
#2D387C
accent
#56E93F
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #40390D

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

Preview Lab → · Contrast checker → · Palette generator →

#40390D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva