#316212#316212

#316212 is a dark, vivid yellow-green. Relative luminance 0.094; OKLCH L 44.5% C 0.121 H 136.3°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#316212
RGBrgb(49, 98, 18)
HSLhsl(97, 69%, 23%)
HSVhsv(97, 82%, 38%)
CMYKcmyk(50%, 0%, 81.6%, 61.6%)
CIE-LABlab(36.80, -31.39, 37.49)
CIE-LCHlch(36.80, 48.90, 129.94°)
OKLaboklab(44.47% -0.0874 0.0836)
OKLCHoklch(44.47% 0.121 136.3)
XYZxyz(5.7433, 9.4316, 2.0900)
Luminance0.0943 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316212 #431262
analogous
#596212 #316212 #12621B
triadic
#316212 #123162 #621231
tetradic
#316212 #125962 #431262 #621B12
square
#316212 #125962 #431262 #621B12
split-complementary
#316212 #1B1262 #621259
monochromatic
#0D1A05 #172E09 #316212 #4B961B #65C925

Accessibility & contrast

On white

7.28
#316212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#316212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #316212
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316212#FFFFFF#000000##FFFFFF
##3162121.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665901
Deuteranopia (green-blind)
#5F551B
Tritanopia (blue-blind)
#2F5E53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #316212;
/* rgb */ color: rgb(49, 98, 18);
/* oklch */ color: oklch(44.5% 0.121 136.3);
Tailwind
colors: {
  custom: {
    50: '#6f8f57',
    500: '#316212',
    950: '#000000',
  },
}
SCSS
$custom: #316212;
$custom-light: #6f8f57;
$custom-dark: #000000;
JSON
{
  "hex": "#316212",
  "rgb": {
    "r": 49,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 96.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44474,
    "c": 0.12093,
    "h": 136.3
  },
  "luminance": 0.09432
}

Semantic roles & 50–950 ramp

primary
#316212
secondary
#73369A
accent
#3CECA8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #316212

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

Preview Lab → · Contrast checker → · Palette generator →

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