#40380B#40380B

#40380B is a dark, moderate yellow. Relative luminance 0.039; OKLCH L 34.0% C 0.062 H 98.8°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#40380B
RGBrgb(64, 56, 11)
HSLhsl(51, 71%, 15%)
HSVhsv(51, 83%, 25%)
CMYKcmyk(0%, 12.5%, 82.8%, 74.9%)
CIE-LABlab(23.48, -2.43, 27.78)
CIE-LCHlch(23.48, 27.88, 95.00°)
OKLaboklab(33.95% -0.0095 0.0615)
OKLCHoklch(33.95% 0.062 98.8)
XYZxyz(3.5891, 3.9427, 0.8885)
Luminance0.0394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40380B #0B1340
analogous
#401D0B #40380B #2E400B
triadic
#40380B #0B4038 #380B40
tetradic
#40380B #0B401D #0B1340 #400B2E
square
#40380B #0B401D #0B1340 #400B2E
split-complementary
#40380B #0B2E40 #1D0B40
monochromatic
#1A1704 #1A1704 #40380B #746614 #A8931D

Accessibility & contrast

On white

11.74
#40380B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#40380B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40380B
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40380B#FFFFFF#000000##FFFFFF
##40380B1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3605
Deuteranopia (green-blind)
#41390E
Tritanopia (blue-blind)
#46332F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #40380b;
/* rgb */ color: rgb(64, 56, 11);
/* oklch */ color: oklch(34.0% 0.062 98.8);
Tailwind
colors: {
  custom: {
    50: '#776e4d',
    500: '#40380b',
    950: '#000000',
  },
}
SCSS
$custom: #40380b;
$custom-light: #776e4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40380b",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 11
  },
  "hsl": {
    "h": 50.943,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.33954,
    "c": 0.06222,
    "h": 98.8
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#40380B
secondary
#2A377D
accent
#55ED3A
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #40380B

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

Preview Lab → · Contrast checker → · Palette generator →

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