#316E12#316E12

#316E12 is a mid, vivid yellow-green. Relative luminance 0.118; OKLCH L 47.9% C 0.137 H 137.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#316E12
RGBrgb(49, 110, 18)
HSLhsl(100, 72%, 25%)
HSVhsv(100, 84%, 43%)
CMYKcmyk(55.5%, 0%, 83.6%, 56.9%)
CIE-LABlab(40.97, -36.48, 41.44)
CIE-LCHlch(40.97, 55.21, 131.36°)
OKLaboklab(47.91% -0.1011 0.0918)
OKLCHoklch(47.91% 0.137 137.7)
XYZxyz(6.9515, 11.8480, 2.4927)
Luminance0.1185 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316E12 #4F126E
analogous
#5F6E12 #316E12 #126E21
triadic
#316E12 #12316E #6E1231
tetradic
#316E12 #125F6E #4F126E #6E2112
square
#316E12 #125F6E #4F126E #6E2112
split-complementary
#316E12 #21126E #6E125F
monochromatic
#0C1A04 #1A3909 #316E12 #48A31B #60D723

Accessibility & contrast

On white

6.23
#316E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#316E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316E12
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316E12#FFFFFF#000000##FFFFFF
##316E121.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#6A5F1D
Tritanopia (blue-blind)
#2C6A5D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #316e12;
/* rgb */ color: rgb(49, 110, 18);
/* oklch */ color: oklch(47.9% 0.137 137.7);
Tailwind
colors: {
  custom: {
    50: '#719859',
    500: '#316e12',
    950: '#000000',
  },
}
SCSS
$custom: #316e12;
$custom-light: #719859;
$custom-dark: #000000;
JSON
{
  "hex": "#316e12",
  "rgb": {
    "r": 49,
    "g": 110,
    "b": 18
  },
  "hsl": {
    "h": 99.783,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.47908,
    "c": 0.13656,
    "h": 137.7
  },
  "luminance": 0.11849
}

Semantic roles & 50–950 ramp

primary
#316E12
secondary
#8037A5
accent
#39EFB1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #316E12

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

Preview Lab → · Contrast checker → · Palette generator →

#316E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva