#40390B#40390B

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

Color values

HEX#40390B
RGBrgb(64, 57, 11)
HSLhsl(52, 71%, 15%)
HSVhsv(52, 83%, 25%)
CMYKcmyk(0%, 10.9%, 82.8%, 74.9%)
CIE-LABlab(23.81, -3.07, 28.10)
CIE-LCHlch(23.81, 28.27, 96.23°)
OKLaboklab(34.21% -0.0114 0.0622)
OKLCHoklch(34.21% 0.063 100.3)
XYZxyz(3.6381, 4.0406, 0.9048)
Luminance0.0404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40390B #0B1240
analogous
#401E0B #40390B #2D400B
triadic
#40390B #0B4039 #390B40
tetradic
#40390B #0B401E #0B1240 #400B2D
square
#40390B #0B401E #0B1240 #400B2D
split-complementary
#40390B #0B2D40 #1E0B40
monochromatic
#1A1704 #1A1704 #40390B #746814 #A8961D

Accessibility & contrast

On white

11.62
#40390B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40390B
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40390B#FFFFFF#000000##FFFFFF
##40390B1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40390b;
/* rgb */ color: rgb(64, 57, 11);
/* oklch */ color: oklch(34.2% 0.063 100.3);
Tailwind
colors: {
  custom: {
    50: '#776f4e',
    500: '#40390b',
    950: '#000000',
  },
}
SCSS
$custom: #40390b;
$custom-light: #776f4e;
$custom-dark: #000000;
JSON
{
  "hex": "#40390b",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 11
  },
  "hsl": {
    "h": 52.075,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.34211,
    "c": 0.06318,
    "h": 100.3
  },
  "luminance": 0.0404
}

Semantic roles & 50–950 ramp

primary
#40390B
secondary
#2A357D
accent
#52ED3A
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #40390B

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

Preview Lab → · Contrast checker → · Palette generator →

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