#40450F#40450F

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

Color values

HEX#40450F
RGBrgb(64, 69, 15)
HSLhsl(66, 64%, 16%)
HSVhsv(66, 78%, 27%)
CMYKcmyk(7.2%, 0%, 78.3%, 72.9%)
CIE-LABlab(27.79, -10.21, 30.24)
CIE-LCHlch(27.79, 31.91, 108.65°)
OKLaboklab(37.4% -0.0309 0.0675)
OKLCHoklch(37.4% 0.074 114.6)
XYZxyz(4.3288, 5.3808, 1.2624)
Luminance0.0538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40450F #140F45
analogous
#452F0F #40450F #25450F
triadic
#40450F #0F4045 #450F40
tetradic
#40450F #0F452F #140F45 #450F25
square
#40450F #0F452F #140F45 #450F25
split-complementary
#40450F #0F2545 #2F0F45
monochromatic
#171905 #171905 #40450F #6F771A #9DAA25

Accessibility & contrast

On white

10.11
#40450F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40450F
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40450F#FFFFFF#000000##FFFFFF
##40450F1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4106
Deuteranopia (green-blind)
#4A4213
Tritanopia (blue-blind)
#45413A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40450f;
/* rgb */ color: rgb(64, 69, 15);
/* oklch */ color: oklch(37.4% 0.074 114.6);
Tailwind
colors: {
  custom: {
    50: '#777851',
    500: '#40450f',
    950: '#000000',
  },
}
SCSS
$custom: #40450f;
$custom-light: #777851;
$custom-dark: #000000;
JSON
{
  "hex": "#40450f",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 15
  },
  "hsl": {
    "h": 65.556,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.37402,
    "c": 0.07422,
    "h": 114.6
  },
  "luminance": 0.05381
}

Semantic roles & 50–950 ramp

primary
#40450F
secondary
#38307F
accent
#41E750
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40450F

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

Preview Lab → · Contrast checker → · Palette generator →

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