#315012#315012

#315012 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.3% C 0.096 H 132.5°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#315012
RGBrgb(49, 80, 18)
HSLhsl(90, 63%, 19%)
HSVhsv(90, 78%, 31%)
CMYKcmyk(38.8%, 0%, 77.5%, 68.6%)
CIE-LABlab(30.48, -22.96, 31.25)
CIE-LCHlch(30.48, 38.78, 126.31°)
OKLaboklab(39.3% -0.0646 0.0705)
OKLCHoklch(39.3% 0.096 132.5)
XYZxyz(4.2444, 6.4338, 1.5904)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315012 #311250
analogous
#505012 #315012 #125012
triadic
#315012 #123150 #501231
tetradic
#315012 #125050 #311250 #501212
square
#315012 #125050 #311250 #501212
split-complementary
#315012 #121250 #501250
monochromatic
#0F1906 #121E07 #315012 #50821D #6EB428

Accessibility & contrast

On white

9.18
#315012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#315012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315012
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315012#FFFFFF#000000##FFFFFF
##3150121.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544908
Deuteranopia (green-blind)
#4F4718
Tritanopia (blue-blind)
#324C44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #315012;
/* rgb */ color: rgb(49, 80, 18);
/* oklch */ color: oklch(39.3% 0.096 132.5);
Tailwind
colors: {
  custom: {
    50: '#6c8154',
    500: '#315012',
    950: '#000000',
  },
}
SCSS
$custom: #315012;
$custom-light: #6c8154;
$custom-dark: #000000;
JSON
{
  "hex": "#315012",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 90,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39297,
    "c": 0.09566,
    "h": 132.5
  },
  "luminance": 0.06434
}

Semantic roles & 50–950 ramp

primary
#315012
secondary
#5F3589
accent
#41E694
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315012

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

Preview Lab → · Contrast checker → · Palette generator →

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