#40380C#40380C

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

Color values

HEX#40380C
RGBrgb(64, 56, 12)
HSLhsl(51, 68%, 15%)
HSVhsv(51, 81%, 25%)
CMYKcmyk(0%, 12.5%, 81.2%, 74.9%)
CIE-LABlab(23.49, -2.37, 27.34)
CIE-LCHlch(23.49, 27.44, 94.96°)
OKLaboklab(33.96% -0.0092 0.0608)
OKLCHoklch(33.96% 0.061 98.7)
XYZxyz(3.5951, 3.9451, 0.9199)
Luminance0.0394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40380C #0C1440
analogous
#401E0C #40380C #2E400C
triadic
#40380C #0C4038 #380C40
tetradic
#40380C #0C401E #0C1440 #400C2E
square
#40380C #0C401E #0C1440 #400C2E
split-complementary
#40380C #0C2E40 #1E0C40
monochromatic
#1A1705 #1A1705 #40380C #746516 #A7921F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40380C#FFFFFF#000000##FFFFFF
##40380C1.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)
#3E3606
Deuteranopia (green-blind)
#40390F
Tritanopia (blue-blind)
#46332F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #40380c;
/* rgb */ color: rgb(64, 56, 12);
/* oklch */ color: oklch(34.0% 0.061 98.7);
Tailwind
colors: {
  custom: {
    50: '#776e4e',
    500: '#40380c',
    950: '#000000',
  },
}
SCSS
$custom: #40380c;
$custom-light: #776e4e;
$custom-dark: #000000;
JSON
{
  "hex": "#40380c",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 12
  },
  "hsl": {
    "h": 50.769,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33962,
    "c": 0.06145,
    "h": 98.7
  },
  "luminance": 0.03945
}

Semantic roles & 50–950 ramp

primary
#40380C
secondary
#2C387C
accent
#57EB3D
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #40380C

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

Preview Lab → · Contrast checker → · Palette generator →

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