#316812#316812

#316812 is a mid, vivid yellow-green. Relative luminance 0.106; OKLCH L 46.2% C 0.129 H 137.1°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#316812
RGBrgb(49, 104, 18)
HSLhsl(98, 70%, 24%)
HSVhsv(98, 83%, 41%)
CMYKcmyk(52.9%, 0%, 82.7%, 59.2%)
CIE-LABlab(38.89, -33.98, 39.48)
CIE-LCHlch(38.89, 52.09, 130.72°)
OKLaboklab(46.19% -0.0944 0.0878)
OKLCHoklch(46.19% 0.129 137.1)
XYZxyz(6.3259, 10.5968, 2.2842)
Luminance0.1060 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316812 #491268
analogous
#5C6812 #316812 #12681E
triadic
#316812 #123168 #681231
tetradic
#316812 #125C68 #491268 #681E12
square
#316812 #125C68 #491268 #681E12
split-complementary
#316812 #1E1268 #68125C
monochromatic
#0C1A05 #183409 #316812 #4A9C1B #62D024

Accessibility & contrast

On white

6.73
#316812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#316812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316812
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316812#FFFFFF#000000##FFFFFF
##3168121.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5E00
Deuteranopia (green-blind)
#655A1C
Tritanopia (blue-blind)
#2E6458
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #316812;
/* rgb */ color: rgb(49, 104, 18);
/* oklch */ color: oklch(46.2% 0.129 137.1);
Tailwind
colors: {
  custom: {
    50: '#709458',
    500: '#316812',
    950: '#000000',
  },
}
SCSS
$custom: #316812;
$custom-light: #709458;
$custom-dark: #000000;
JSON
{
  "hex": "#316812",
  "rgb": {
    "r": 49,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 98.372,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.46194,
    "c": 0.12886,
    "h": 137.1
  },
  "luminance": 0.10597
}

Semantic roles & 50–950 ramp

primary
#316812
secondary
#7A36A0
accent
#3BEDAD
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #316812

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

Preview Lab → · Contrast checker → · Palette generator →

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