#40370A#40370A

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

Color values

HEX#40370A
RGBrgb(64, 55, 10)
HSLhsl(50, 73%, 15%)
HSVhsv(50, 84%, 25%)
CMYKcmyk(0%, 14.1%, 84.4%, 74.9%)
CIE-LABlab(23.15, -1.85, 27.86)
CIE-LCHlch(23.15, 27.92, 93.79°)
OKLaboklab(33.69% -0.008 0.0615)
OKLCHoklch(33.69% 0.062 97.4)
XYZxyz(3.5355, 3.8445, 0.8429)
Luminance0.0384 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40370A #0A1340
analogous
#401C0A #40370A #2E400A
triadic
#40370A #0A4037 #370A40
tetradic
#40370A #0A401C #0A1340 #400A2E
square
#40370A #0A401C #0A1340 #400A2E
split-complementary
#40370A #0A2E40 #1C0A40
monochromatic
#1A1704 #1A1704 #40370A #756412 #AA921B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40370A#FFFFFF#000000##FFFFFF
##40370A1.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)
#3D3504
Deuteranopia (green-blind)
#40380D
Tritanopia (blue-blind)
#46322E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #40370a;
/* rgb */ color: rgb(64, 55, 10);
/* oklch */ color: oklch(33.7% 0.062 97.4);
Tailwind
colors: {
  custom: {
    50: '#776d4d',
    500: '#40370a',
    950: '#000000',
  },
}
SCSS
$custom: #40370a;
$custom-light: #776d4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40370a",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 10
  },
  "hsl": {
    "h": 50,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.33689,
    "c": 0.06205,
    "h": 97.4
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#40370A
secondary
#29377D
accent
#57F038
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #40370A

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

Preview Lab → · Contrast checker → · Palette generator →

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