#40450B#40450B

#40450B is a dark, moderate yellow. Relative luminance 0.054; OKLCH L 37.4% C 0.077 H 114.5°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#40450B
RGBrgb(64, 69, 11)
HSLhsl(65, 73%, 16%)
HSVhsv(65, 84%, 27%)
CMYKcmyk(7.2%, 0%, 84.1%, 72.9%)
CIE-LABlab(27.77, -10.44, 31.88)
CIE-LCHlch(27.77, 33.54, 108.14°)
OKLaboklab(37.37% -0.032 0.0701)
OKLCHoklch(37.37% 0.077 114.5)
XYZxyz(4.3030, 5.3705, 1.1265)
Luminance0.0537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40450B #100B45
analogous
#452D0B #40450B #23450B
triadic
#40450B #0B4045 #450B40
tetradic
#40450B #0B452D #100B45 #450B23
square
#40450B #0B452D #100B45 #450B23
split-complementary
#40450B #0B2345 #2D0B45
monochromatic
#181A04 #181A04 #40450B #717A13 #A2AF1C

Accessibility & contrast

On white

10.13
#40450B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#40450B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40450B
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40450B#FFFFFF#000000##FFFFFF
##40450B1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4102
Deuteranopia (green-blind)
#4A4210
Tritanopia (blue-blind)
#45403A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40450b;
/* rgb */ color: rgb(64, 69, 11);
/* oklch */ color: oklch(37.4% 0.077 114.5);
Tailwind
colors: {
  custom: {
    50: '#77784f',
    500: '#40450b',
    950: '#000000',
  },
}
SCSS
$custom: #40450b;
$custom-light: #77784f;
$custom-dark: #000000;
JSON
{
  "hex": "#40450b",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 11
  },
  "hsl": {
    "h": 65.172,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.37371,
    "c": 0.07707,
    "h": 114.5
  },
  "luminance": 0.0537
}

Semantic roles & 50–950 ramp

primary
#40450B
secondary
#322A81
accent
#39EF48
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40450B

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

Preview Lab → · Contrast checker → · Palette generator →

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