#315E12#315E12

#315E12 is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.3% C 0.116 H 135.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#315E12
RGBrgb(49, 94, 18)
HSLhsl(96, 68%, 22%)
HSVhsv(96, 81%, 37%)
CMYKcmyk(47.9%, 0%, 80.9%, 63.1%)
CIE-LABlab(35.40, -29.61, 36.14)
CIE-LCHlch(35.40, 46.72, 129.33°)
OKLaboklab(43.33% -0.0826 0.0808)
OKLCHoklch(43.33% 0.116 135.6)
XYZxyz(5.3784, 8.7017, 1.9683)
Luminance0.0870 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315E12 #3F125E
analogous
#575E12 #315E12 #125E19
triadic
#315E12 #12315E #5E1231
tetradic
#315E12 #12575E #3F125E #5E1912
square
#315E12 #12575E #3F125E #5E1912
split-complementary
#315E12 #19125E #5E1257
monochromatic
#0D1A05 #162B08 #315E12 #4C911C #67C526

Accessibility & contrast

On white

7.66
#315E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#315E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315E12
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315E12#FFFFFF#000000##FFFFFF
##315E121.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625603
Deuteranopia (green-blind)
#5C521A
Tritanopia (blue-blind)
#2F5A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #315e12;
/* rgb */ color: rgb(49, 94, 18);
/* oklch */ color: oklch(43.3% 0.116 135.6);
Tailwind
colors: {
  custom: {
    50: '#6e8c56',
    500: '#315e12',
    950: '#000000',
  },
}
SCSS
$custom: #315e12;
$custom-light: #6e8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#315e12",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 95.526,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43326,
    "c": 0.11551,
    "h": 135.6
  },
  "luminance": 0.08702
}

Semantic roles & 50–950 ramp

primary
#315E12
secondary
#6F3596
accent
#3DEBA4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #315E12

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

Preview Lab → · Contrast checker → · Palette generator →

#315E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva