#316512#316512

#316512 is a mid, vivid yellow-green. Relative luminance 0.100; OKLCH L 45.3% C 0.125 H 136.7°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#316512
RGBrgb(49, 101, 18)
HSLhsl(98, 70%, 23%)
HSVhsv(98, 82%, 40%)
CMYKcmyk(51.5%, 0%, 82.2%, 60.4%)
CIE-LABlab(37.85, -32.70, 38.49)
CIE-LCHlch(37.85, 50.50, 130.35°)
OKLaboklab(45.34% -0.0909 0.0857)
OKLCHoklch(45.34% 0.125 136.7)
XYZxyz(6.0293, 10.0036, 2.1853)
Luminance0.1000 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316512 #461265
analogous
#5A6512 #316512 #12651C
triadic
#316512 #123165 #651231
tetradic
#316512 #125A65 #461265 #651C12
square
#316512 #125A65 #461265 #651C12
split-complementary
#316512 #1C1265 #65125A
monochromatic
#0D1A05 #183109 #316512 #4A991B #63CD25

Accessibility & contrast

On white

7.00
#316512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#316512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316512
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316512#FFFFFF#000000##FFFFFF
##3165121.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C00
Deuteranopia (green-blind)
#62571B
Tritanopia (blue-blind)
#2E6156
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #316512;
/* rgb */ color: rgb(49, 101, 18);
/* oklch */ color: oklch(45.3% 0.125 136.7);
Tailwind
colors: {
  custom: {
    50: '#6f9157',
    500: '#316512',
    950: '#000000',
  },
}
SCSS
$custom: #316512;
$custom-light: #6f9157;
$custom-dark: #000000;
JSON
{
  "hex": "#316512",
  "rgb": {
    "r": 49,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 97.59,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45335,
    "c": 0.12492,
    "h": 136.7
  },
  "luminance": 0.10004
}

Semantic roles & 50–950 ramp

primary
#316512
secondary
#76369D
accent
#3BEDAA
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080D03
muted
#7B7D78

Preview Lab

Preview with #316512

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

Preview Lab → · Contrast checker → · Palette generator →

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