#40460B#40460B

#40460B 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.01:1 contrast (WCAG AA passes).

Color values

HEX#40460B
RGBrgb(64, 70, 11)
HSLhsl(66, 73%, 16%)
HSVhsv(66, 84%, 27%)
CMYKcmyk(8.6%, 0%, 84.3%, 72.5%)
CIE-LABlab(28.10, -11.03, 32.19)
CIE-LCHlch(28.10, 34.03, 108.91°)
OKLaboklab(37.64% -0.0336 0.0708)
OKLCHoklch(37.64% 0.078 115.4)
XYZxyz(4.3650, 5.4945, 1.1472)
Luminance0.0549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40460B #110B46
analogous
#462E0B #40460B #22460B
triadic
#40460B #0B4046 #460B40
tetradic
#40460B #0B462E #110B46 #460B22
square
#40460B #0B462E #110B46 #460B22
split-complementary
#40460B #0B2246 #2E0B46
monochromatic
#181A04 #181A04 #40460B #707B13 #A1B01C

Accessibility & contrast

On white

10.01
#40460B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40460B
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40460B#FFFFFF#000000##FFFFFF
##40460B1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40460b;
/* rgb */ color: rgb(64, 70, 11);
/* oklch */ color: oklch(37.6% 0.078 115.4);
Tailwind
colors: {
  custom: {
    50: '#77794f',
    500: '#40460b',
    950: '#000000',
  },
}
SCSS
$custom: #40460b;
$custom-light: #77794f;
$custom-dark: #000000;
JSON
{
  "hex": "#40460b",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 11
  },
  "hsl": {
    "h": 66.102,
    "s": 72.84,
    "l": 15.882
  },
  "oklch": {
    "l": 0.37639,
    "c": 0.07835,
    "h": 115.4
  },
  "luminance": 0.05494
}

Semantic roles & 50–950 ramp

primary
#40460B
secondary
#332A82
accent
#38F04B
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40460B

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

Preview Lab → · Contrast checker → · Palette generator →

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