#40460F#40460F

#40460F 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#40460F
RGBrgb(64, 70, 15)
HSLhsl(67, 65%, 17%)
HSVhsv(67, 79%, 27%)
CMYKcmyk(8.6%, 0%, 78.6%, 72.5%)
CIE-LABlab(28.13, -10.80, 30.57)
CIE-LCHlch(28.13, 32.42, 109.45°)
OKLaboklab(37.67% -0.0326 0.0682)
OKLCHoklch(37.67% 0.076 115.5)
XYZxyz(4.3908, 5.5049, 1.2831)
Luminance0.0551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40460F #150F46
analogous
#46310F #40460F #25460F
triadic
#40460F #0F4046 #460F40
tetradic
#40460F #0F4631 #150F46 #460F25
square
#40460F #0F4631 #150F46 #460F25
split-complementary
#40460F #0F2546 #310F46
monochromatic
#171905 #171905 #40460F #6E781A #9CAB25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40460F#FFFFFF#000000##FFFFFF
##40460F1.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)
#4B4206
Deuteranopia (green-blind)
#4B4313
Tritanopia (blue-blind)
#45423B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40460f;
/* rgb */ color: rgb(64, 70, 15);
/* oklch */ color: oklch(37.7% 0.076 115.5);
Tailwind
colors: {
  custom: {
    50: '#777952',
    500: '#40460f',
    950: '#000000',
  },
}
SCSS
$custom: #40460f;
$custom-light: #777952;
$custom-dark: #000000;
JSON
{
  "hex": "#40460f",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 15
  },
  "hsl": {
    "h": 66.545,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.3767,
    "c": 0.07554,
    "h": 115.5
  },
  "luminance": 0.05505
}

Semantic roles & 50–950 ramp

primary
#40460F
secondary
#393080
accent
#40E852
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40460F

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

Preview Lab → · Contrast checker → · Palette generator →

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