#316312#316312

#316312 is a dark, vivid yellow-green. Relative luminance 0.096; OKLCH L 44.8% C 0.122 H 136.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#316312
RGBrgb(49, 99, 18)
HSLhsl(97, 69%, 23%)
HSVhsv(97, 82%, 39%)
CMYKcmyk(50.5%, 0%, 81.8%, 61.2%)
CIE-LABlab(37.15, -31.83, 37.82)
CIE-LCHlch(37.15, 49.43, 130.08°)
OKLaboklab(44.76% -0.0886 0.0843)
OKLCHoklch(44.76% 0.122 136.4)
XYZxyz(5.8375, 9.6199, 2.1214)
Luminance0.0962 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316312 #441263
analogous
#596312 #316312 #12631B
triadic
#316312 #123163 #631231
tetradic
#316312 #125963 #441263 #631B12
square
#316312 #125963 #441263 #631B12
split-complementary
#316312 #1B1263 #631259
monochromatic
#0D1A05 #172F09 #316312 #4B971B #64CB25

Accessibility & contrast

On white

7.18
#316312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#316312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #316312
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316312#FFFFFF#000000##FFFFFF
##3163121.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A01
Deuteranopia (green-blind)
#60561B
Tritanopia (blue-blind)
#2F5F54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #316312;
/* rgb */ color: rgb(49, 99, 18);
/* oklch */ color: oklch(44.8% 0.122 136.4);
Tailwind
colors: {
  custom: {
    50: '#6f9057',
    500: '#316312',
    950: '#000000',
  },
}
SCSS
$custom: #316312;
$custom-light: #6f9057;
$custom-dark: #000000;
JSON
{
  "hex": "#316312",
  "rgb": {
    "r": 49,
    "g": 99,
    "b": 18
  },
  "hsl": {
    "h": 97.037,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.44761,
    "c": 0.12227,
    "h": 136.4
  },
  "luminance": 0.0962
}

Semantic roles & 50–950 ramp

primary
#316312
secondary
#74369B
accent
#3CECA9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #316312

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

Preview Lab → · Contrast checker → · Palette generator →

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