#40370C#40370C

#40370C is a dark, moderate yellow. Relative luminance 0.038; OKLCH L 33.7% C 0.061 H 97.0°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#40370C
RGBrgb(64, 55, 12)
HSLhsl(50, 68%, 15%)
HSVhsv(50, 81%, 25%)
CMYKcmyk(0%, 14.1%, 81.2%, 74.9%)
CIE-LABlab(23.17, -1.73, 27.01)
CIE-LCHlch(23.17, 27.07, 93.67°)
OKLaboklab(33.71% -0.0074 0.0601)
OKLCHoklch(33.71% 0.061 97)
XYZxyz(3.5471, 3.8491, 0.9039)
Luminance0.0385 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40370C #0C1540
analogous
#401D0C #40370C #2F400C
triadic
#40370C #0C4037 #370C40
tetradic
#40370C #0C401D #0C1540 #400C2F
square
#40370C #0C401D #0C1540 #400C2F
split-complementary
#40370C #0C2F40 #1D0C40
monochromatic
#1A1605 #1A1605 #40370C #746316 #A7901F

Accessibility & contrast

On white

11.87
#40370C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#40370C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40370C
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40370C#FFFFFF#000000##FFFFFF
##40370C1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3606
Deuteranopia (green-blind)
#40380F
Tritanopia (blue-blind)
#46322E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #40370c;
/* rgb */ color: rgb(64, 55, 12);
/* oklch */ color: oklch(33.7% 0.061 97.0);
Tailwind
colors: {
  custom: {
    50: '#776d4e',
    500: '#40370c',
    950: '#000000',
  },
}
SCSS
$custom: #40370c;
$custom-light: #776d4e;
$custom-dark: #000000;
JSON
{
  "hex": "#40370c",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 12
  },
  "hsl": {
    "h": 49.615,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33707,
    "c": 0.06053,
    "h": 97
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#40370C
secondary
#2C3A7C
accent
#5BEB3D
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #40370C

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

Preview Lab → · Contrast checker → · Palette generator →

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