#40451F#40451F

#40451F is a dark, muted yellow. Relative luminance 0.054; OKLCH L 37.6% C 0.058 H 115.4°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#40451F
RGBrgb(64, 69, 31)
HSLhsl(68, 38%, 20%)
HSVhsv(68, 55%, 27%)
CMYKcmyk(7.2%, 0%, 55.1%, 72.9%)
CIE-LABlab(27.97, -8.77, 22.08)
CIE-LCHlch(27.97, 23.76, 111.66°)
OKLaboklab(37.6% -0.0249 0.0525)
OKLCHoklch(37.6% 0.058 115.4)
XYZxyz(4.4899, 5.4452, 2.1106)
Luminance0.0544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40451F #241F45
analogous
#45371F #40451F #2D451F
triadic
#40451F #1F4045 #451F40
tetradic
#40451F #1F4537 #241F45 #451F2D
square
#40451F #1F4537 #241F45 #451F2D
split-complementary
#40451F #1F2D45 #371F45
monochromatic
#141509 #191B0C #40451F #676F32 #8E9945

Accessibility & contrast

On white

10.05
#40451F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#40451F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40451F
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40451F#FFFFFF#000000##FFFFFF
##40451F1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A421C
Deuteranopia (green-blind)
#494221
Tritanopia (blue-blind)
#44413C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40451f;
/* rgb */ color: rgb(64, 69, 31);
/* oklch */ color: oklch(37.6% 0.058 115.4);
Tailwind
colors: {
  custom: {
    50: '#76785c',
    500: '#40451f',
    950: '#000000',
  },
}
SCSS
$custom: #40451f;
$custom-light: #76785c;
$custom-dark: #000000;
JSON
{
  "hex": "#40451f",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 31
  },
  "hsl": {
    "h": 67.895,
    "s": 38,
    "l": 19.608
  },
  "oklch": {
    "l": 0.37598,
    "c": 0.05809,
    "h": 115.4
  },
  "luminance": 0.05445
}

Semantic roles & 50–950 ramp

primary
#40451F
secondary
#4D4679
accent
#5ACE69
background
#F7F7F5
surface
#EDEDE9
border
#C8C8C5
text
#080904
muted
#7B7B79

Preview Lab

Preview with #40451F

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

Preview Lab → · Contrast checker → · Palette generator →

#40451F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva