#40451B#40451B

#40451B is a dark, moderate yellow. Relative luminance 0.054; OKLCH L 37.5% C 0.063 H 115.1°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#40451B
RGBrgb(64, 69, 27)
HSLhsl(67, 44%, 19%)
HSVhsv(67, 61%, 27%)
CMYKcmyk(7.2%, 0%, 60.9%, 72.9%)
CIE-LABlab(27.91, -9.20, 24.30)
CIE-LCHlch(27.91, 25.98, 110.75°)
OKLaboklab(37.54% -0.0266 0.0568)
OKLCHoklch(37.54% 0.063 115.1)
XYZxyz(4.4404, 5.4254, 1.8500)
Luminance0.0542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40451B #201B45
analogous
#45351B #40451B #2B451B
triadic
#40451B #1B4045 #451B40
tetradic
#40451B #1B4535 #201B45 #451B2B
square
#40451B #1B4535 #201B45 #451B2B
split-complementary
#40451B #1B2B45 #351B45
monochromatic
#141609 #17190A #40451B #69712C #929D3D

Accessibility & contrast

On white

10.07
#40451B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40451B
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40451B#FFFFFF#000000##FFFFFF
##40451B1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40451b;
/* rgb */ color: rgb(64, 69, 27);
/* oklch */ color: oklch(37.5% 0.063 115.1);
Tailwind
colors: {
  custom: {
    50: '#767859',
    500: '#40451b',
    950: '#000000',
  },
}
SCSS
$custom: #40451b;
$custom-light: #767859;
$custom-dark: #000000;
JSON
{
  "hex": "#40451b",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 27
  },
  "hsl": {
    "h": 67.143,
    "s": 43.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.37538,
    "c": 0.06277,
    "h": 115.1
  },
  "luminance": 0.05425
}

Semantic roles & 50–950 ramp

primary
#40451B
secondary
#48417B
accent
#54D363
background
#F7F7F5
surface
#EDEDE9
border
#C8C8C5
text
#080903
muted
#7B7B78

Preview Lab

Preview with #40451B

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

Preview Lab → · Contrast checker → · Palette generator →

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