#40390E#40390E

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

Color values

HEX#40390E
RGBrgb(64, 57, 14)
HSLhsl(52, 64%, 15%)
HSVhsv(52, 78%, 25%)
CMYKcmyk(0%, 10.9%, 78.1%, 74.9%)
CIE-LABlab(23.83, -2.88, 26.73)
CIE-LCHlch(23.83, 26.89, 96.16°)
OKLaboklab(34.24% -0.0104 0.0599)
OKLCHoklch(34.24% 0.061 99.9)
XYZxyz(3.6569, 4.0481, 1.0041)
Luminance0.0405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40390E #0E1540
analogous
#40200E #40390E #2E400E
triadic
#40390E #0E4039 #390E40
tetradic
#40390E #0E4020 #0E1540 #400E2E
square
#40390E #0E4020 #0E1540 #400E2E
split-complementary
#40390E #0E2E40 #200E40
monochromatic
#191605 #191605 #40390E #726619 #A49224

Accessibility & contrast

On white

11.60
#40390E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40390E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40390E#FFFFFF#000000##FFFFFF
##40390E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40390e;
/* rgb */ color: rgb(64, 57, 14);
/* oklch */ color: oklch(34.2% 0.061 99.9);
Tailwind
colors: {
  custom: {
    50: '#776f4f',
    500: '#40390e',
    950: '#000000',
  },
}
SCSS
$custom: #40390e;
$custom-light: #776f4f;
$custom-dark: #000000;
JSON
{
  "hex": "#40390e",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 14
  },
  "hsl": {
    "h": 51.6,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.34238,
    "c": 0.06077,
    "h": 99.9
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

primary
#40390E
secondary
#2F397B
accent
#58E741
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #40390E

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

Preview Lab → · Contrast checker → · Palette generator →

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