#40460E#40460E

#40460E is a dark, moderate yellow. Relative luminance 0.055; OKLCH L 37.7% C 0.076 H 115.5°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#40460E
RGBrgb(64, 70, 14)
HSLhsl(66, 67%, 16%)
HSVhsv(66, 80%, 27%)
CMYKcmyk(8.6%, 0%, 80%, 72.5%)
CIE-LABlab(28.12, -10.86, 30.99)
CIE-LCHlch(28.12, 32.84, 109.31°)
OKLaboklab(37.66% -0.0328 0.0689)
OKLCHoklch(37.66% 0.076 115.5)
XYZxyz(4.3839, 5.5021, 1.2464)
Luminance0.0550 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40460E #140E46
analogous
#46300E #40460E #24460E
triadic
#40460E #0E4046 #460E40
tetradic
#40460E #0E4630 #140E46 #460E24
square
#40460E #0E4630 #140E46 #460E24
split-complementary
#40460E #0E2446 #300E46
monochromatic
#171A05 #171A05 #40460E #6F7918 #9DAC22

Accessibility & contrast

On white

10.00
#40460E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#40460E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40460E
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40460E#FFFFFF#000000##FFFFFF
##40460E1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4205
Deuteranopia (green-blind)
#4B4313
Tritanopia (blue-blind)
#45413B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40460e;
/* rgb */ color: rgb(64, 70, 14);
/* oklch */ color: oklch(37.7% 0.076 115.5);
Tailwind
colors: {
  custom: {
    50: '#777951',
    500: '#40460e',
    950: '#000000',
  },
}
SCSS
$custom: #40460e;
$custom-light: #777951;
$custom-dark: #000000;
JSON
{
  "hex": "#40460e",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 14
  },
  "hsl": {
    "h": 66.429,
    "s": 66.667,
    "l": 16.471
  },
  "oklch": {
    "l": 0.37662,
    "c": 0.07629,
    "h": 115.5
  },
  "luminance": 0.05502
}

Semantic roles & 50–950 ramp

primary
#40460E
secondary
#382F81
accent
#3EEA51
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40460E

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

Preview Lab → · Contrast checker → · Palette generator →

#40460E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva