#406315#406315

#406315 is a mid, moderate yellow-green. Relative luminance 0.101; OKLCH L 45.6% C 0.112 H 131.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#406315
RGBrgb(64, 99, 21)
HSLhsl(87, 65%, 24%)
HSVhsv(87, 79%, 39%)
CMYKcmyk(35.4%, 0%, 78.8%, 61.2%)
CIE-LABlab(37.96, -25.94, 37.76)
CIE-LCHlch(37.96, 45.81, 124.48°)
OKLaboklab(45.65% -0.0735 0.0844)
OKLCHoklch(45.65% 0.112 131.1)
XYZxyz(6.7115, 10.0676, 2.2989)
Luminance0.1007 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406315 #381563
analogous
#635F15 #406315 #196315
triadic
#406315 #154063 #631540
tetradic
#406315 #15635F #381563 #631519
square
#406315 #15635F #381563 #631519
split-complementary
#406315 #151963 #5F1563
monochromatic
#101905 #1F310A #406315 #619520 #81C82A

Accessibility & contrast

On white

6.97
#406315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#406315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406315
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406315#FFFFFF#000000##FFFFFF
##4063151.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B06
Deuteranopia (green-blind)
#63581D
Tritanopia (blue-blind)
#415F54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #406315;
/* rgb */ color: rgb(64, 99, 21);
/* oklch */ color: oklch(45.6% 0.112 131.1);
Tailwind
colors: {
  custom: {
    50: '#788f59',
    500: '#406315',
    950: '#000000',
  },
}
SCSS
$custom: #406315;
$custom-light: #788f59;
$custom-dark: #000000;
JSON
{
  "hex": "#406315",
  "rgb": {
    "r": 64,
    "g": 99,
    "b": 21
  },
  "hsl": {
    "h": 86.923,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.45647,
    "c": 0.11189,
    "h": 131.1
  },
  "luminance": 0.10068
}

Semantic roles & 50–950 ramp

primary
#406315
secondary
#653A9A
accent
#40E88B
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #406315

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

Preview Lab → · Contrast checker → · Palette generator →

#406315 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva