#315211#315211

#315211 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.9% C 0.099 H 132.9°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#315211
RGBrgb(49, 82, 17)
HSLhsl(90, 66%, 19%)
HSVhsv(90, 79%, 32%)
CMYKcmyk(40.2%, 0%, 79.3%, 67.8%)
CIE-LABlab(31.18, -24.03, 32.38)
CIE-LCHlch(31.18, 40.32, 126.58°)
OKLaboklab(39.86% -0.0676 0.0727)
OKLCHoklch(39.86% 0.099 132.9)
XYZxyz(4.3850, 6.7278, 1.5978)
Luminance0.0673 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315211 #321152
analogous
#525211 #315211 #115212
triadic
#315211 #113152 #521131
tetradic
#315211 #115252 #321152 #521211
square
#315211 #115252 #321152 #521211
split-complementary
#315211 #121152 #521152
monochromatic
#0F1905 #131F06 #315211 #4F851C #6EB726

Accessibility & contrast

On white

8.95
#315211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#315211 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315211
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315211#FFFFFF#000000##FFFFFF
##3152111.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B06
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#314E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #315211;
/* rgb */ color: rgb(49, 82, 17);
/* oklch */ color: oklch(39.9% 0.099 132.9);
Tailwind
colors: {
  custom: {
    50: '#6c8354',
    500: '#315211',
    950: '#000000',
  },
}
SCSS
$custom: #315211;
$custom-light: #6c8354;
$custom-dark: #000000;
JSON
{
  "hex": "#315211",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 90.462,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39864,
    "c": 0.09929,
    "h": 132.9
  },
  "luminance": 0.06728
}

Semantic roles & 50–950 ramp

primary
#315211
secondary
#60348B
accent
#3FE995
background
#F6F8F5
surface
#ECEFE8
border
#C7CAC4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315211

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

Preview Lab → · Contrast checker → · Palette generator →

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