#315212#315212

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

Color values

HEX#315212
RGBrgb(49, 82, 18)
HSLhsl(91, 64%, 20%)
HSVhsv(91, 78%, 32%)
CMYKcmyk(40.2%, 0%, 78%, 67.8%)
CIE-LABlab(31.19, -23.95, 31.96)
CIE-LCHlch(31.19, 39.94, 126.85°)
OKLaboklab(39.87% -0.0673 0.072)
OKLCHoklch(39.87% 0.099 133.1)
XYZxyz(4.3930, 6.7310, 1.6399)
Luminance0.0673 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315212 #331252
analogous
#515212 #315212 #125213
triadic
#315212 #123152 #521231
tetradic
#315212 #125152 #331252 #521312
square
#315212 #125152 #331252 #521312
split-complementary
#315212 #131252 #521251
monochromatic
#0F1906 #132007 #315212 #4F841D #6DB628

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315212#FFFFFF#000000##FFFFFF
##3152121.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)
#564B07
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#314E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #315212;
/* rgb */ color: rgb(49, 82, 18);
/* oklch */ color: oklch(39.9% 0.099 133.1);
Tailwind
colors: {
  custom: {
    50: '#6c8355',
    500: '#315212',
    950: '#000000',
  },
}
SCSS
$custom: #315212;
$custom-light: #6c8355;
$custom-dark: #000000;
JSON
{
  "hex": "#315212",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 90.938,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39872,
    "c": 0.09858,
    "h": 133.1
  },
  "luminance": 0.06731
}

Semantic roles & 50–950 ramp

primary
#315212
secondary
#61358B
accent
#41E796
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315212

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

Preview Lab → · Contrast checker → · Palette generator →

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