#316612#316612

#316612 is a mid, vivid yellow-green. Relative luminance 0.102; OKLCH L 45.6% C 0.126 H 136.8°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#316612
RGBrgb(49, 102, 18)
HSLhsl(98, 70%, 24%)
HSVhsv(98, 82%, 40%)
CMYKcmyk(52%, 0%, 82.4%, 60%)
CIE-LABlab(38.20, -33.13, 38.82)
CIE-LCHlch(38.20, 51.04, 130.47°)
OKLaboklab(45.62% -0.0921 0.0864)
OKLCHoklch(45.62% 0.126 136.8)
XYZxyz(6.1270, 10.1990, 2.2179)
Luminance0.1020 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316612 #471266
analogous
#5B6612 #316612 #12661D
triadic
#316612 #123166 #661231
tetradic
#316612 #125B66 #471266 #661D12
square
#316612 #125B66 #471266 #661D12
split-complementary
#316612 #1D1266 #66125B
monochromatic
#0C1A05 #183209 #316612 #4A9A1B #63CE24

Accessibility & contrast

On white

6.91
#316612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#316612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316612
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316612#FFFFFF#000000##FFFFFF
##3166121.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#63581B
Tritanopia (blue-blind)
#2E6256
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #316612;
/* rgb */ color: rgb(49, 102, 18);
/* oklch */ color: oklch(45.6% 0.126 136.8);
Tailwind
colors: {
  custom: {
    50: '#6f9258',
    500: '#316612',
    950: '#000000',
  },
}
SCSS
$custom: #316612;
$custom-light: #6f9258;
$custom-dark: #000000;
JSON
{
  "hex": "#316612",
  "rgb": {
    "r": 49,
    "g": 102,
    "b": 18
  },
  "hsl": {
    "h": 97.857,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.45621,
    "c": 0.12625,
    "h": 136.8
  },
  "luminance": 0.10199
}

Semantic roles & 50–950 ramp

primary
#316612
secondary
#77369E
accent
#3BEDAB
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #316612

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

Preview Lab → · Contrast checker → · Palette generator →

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