#405F0F#405F0F

#405F0F is a dark, moderate yellow-green. Relative luminance 0.093; OKLCH L 44.5% C 0.110 H 129.3°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#405F0F
RGBrgb(64, 95, 15)
HSLhsl(83, 73%, 22%)
HSVhsv(83, 84%, 37%)
CMYKcmyk(32.6%, 0%, 84.2%, 62.7%)
CIE-LABlab(36.57, -24.33, 38.61)
CIE-LCHlch(36.57, 45.64, 122.22°)
OKLaboklab(44.5% -0.0696 0.0851)
OKLCHoklch(44.5% 0.11 129.3)
XYZxyz(6.2928, 9.3087, 1.9171)
Luminance0.0931 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F0F #2E0F5F
analogous
#5F560F #405F0F #185F0F
triadic
#405F0F #0F405F #5F0F40
tetradic
#405F0F #0F5F56 #2E0F5F #5F0F18
square
#405F0F #0F5F56 #2E0F5F #5F0F18
split-complementary
#405F0F #0F185F #560F5F
monochromatic
#121A04 #1C2A07 #405F0F #649417 #87C920

Accessibility & contrast

On white

7.34
#405F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#405F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405F0F
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F0F#FFFFFF#000000##FFFFFF
##405F0F1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645700
Deuteranopia (green-blind)
#605518
Tritanopia (blue-blind)
#425A50
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #405f0f;
/* rgb */ color: rgb(64, 95, 15);
/* oklch */ color: oklch(44.5% 0.110 129.3);
Tailwind
colors: {
  custom: {
    50: '#788c55',
    500: '#405f0f',
    950: '#000000',
  },
}
SCSS
$custom: #405f0f;
$custom-light: #788c55;
$custom-dark: #000000;
JSON
{
  "hex": "#405f0f",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 15
  },
  "hsl": {
    "h": 83.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.44501,
    "c": 0.10995,
    "h": 129.3
  },
  "luminance": 0.09309
}

Semantic roles & 50–950 ramp

primary
#405F0F
secondary
#593298
accent
#38EF7F
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#090C03
muted
#7B7D78

Preview Lab

Preview with #405F0F

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

Preview Lab → · Contrast checker → · Palette generator →

#405F0F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva