#40450D#40450D

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

Color values

HEX#40450D
RGBrgb(64, 69, 13)
HSLhsl(65, 68%, 16%)
HSVhsv(65, 81%, 27%)
CMYKcmyk(7.2%, 0%, 81.2%, 72.9%)
CIE-LABlab(27.78, -10.33, 31.09)
CIE-LCHlch(27.78, 32.76, 108.38°)
OKLaboklab(37.39% -0.0315 0.0689)
OKLCHoklch(37.39% 0.076 114.6)
XYZxyz(4.3152, 5.3754, 1.1909)
Luminance0.0537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40450D #120D45
analogous
#452E0D #40450D #24450D
triadic
#40450D #0D4045 #450D40
tetradic
#40450D #0D452E #120D45 #450D24
square
#40450D #0D452E #120D45 #450D24
split-complementary
#40450D #0D2445 #2E0D45
monochromatic
#181A05 #181A05 #40450D #707817 #A0AC20

Accessibility & contrast

On white

10.12
#40450D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#40450D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40450D
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40450D#FFFFFF#000000##FFFFFF
##40450D1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40450d;
/* rgb */ color: rgb(64, 69, 13);
/* oklch */ color: oklch(37.4% 0.076 114.6);
Tailwind
colors: {
  custom: {
    50: '#777850',
    500: '#40450d',
    950: '#000000',
  },
}
SCSS
$custom: #40450d;
$custom-light: #777850;
$custom-dark: #000000;
JSON
{
  "hex": "#40450d",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 13
  },
  "hsl": {
    "h": 65.357,
    "s": 68.293,
    "l": 16.078
  },
  "oklch": {
    "l": 0.37386,
    "c": 0.07571,
    "h": 114.6
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#40450D
secondary
#352D80
accent
#3DEB4C
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40450D

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

Preview Lab → · Contrast checker → · Palette generator →

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