#40460C#40460C

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

Color values

HEX#40460C
RGBrgb(64, 70, 12)
HSLhsl(66, 71%, 16%)
HSVhsv(66, 83%, 27%)
CMYKcmyk(8.6%, 0%, 82.9%, 72.5%)
CIE-LABlab(28.11, -10.98, 31.80)
CIE-LCHlch(28.11, 33.64, 109.04°)
OKLaboklab(37.65% -0.0334 0.0702)
OKLCHoklch(37.65% 0.078 115.4)
XYZxyz(4.3710, 5.4969, 1.1785)
Luminance0.0550 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40460C #120C46
analogous
#462F0C #40460C #23460C
triadic
#40460C #0C4046 #460C40
tetradic
#40460C #0C462F #120C46 #460C23
square
#40460C #0C462F #120C46 #460C23
split-complementary
#40460C #0C2346 #2F0C46
monochromatic
#181A04 #181A04 #40460C #707A15 #A0AE1E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40460C#FFFFFF#000000##FFFFFF
##40460C1.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)
#4C4202
Deuteranopia (green-blind)
#4B4311
Tritanopia (blue-blind)
#45413B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40460c;
/* rgb */ color: rgb(64, 70, 12);
/* oklch */ color: oklch(37.6% 0.078 115.4);
Tailwind
colors: {
  custom: {
    50: '#777950',
    500: '#40460c',
    950: '#000000',
  },
}
SCSS
$custom: #40460c;
$custom-light: #777950;
$custom-dark: #000000;
JSON
{
  "hex": "#40460c",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 12
  },
  "hsl": {
    "h": 66.207,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.37647,
    "c": 0.0777,
    "h": 115.4
  },
  "luminance": 0.05497
}

Semantic roles & 50–950 ramp

primary
#40460C
secondary
#352C82
accent
#3AED4D
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40460C

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

Preview Lab → · Contrast checker → · Palette generator →

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