#315C12#315C12

#315C12 is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 42.8% C 0.113 H 135.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#315C12
RGBrgb(49, 92, 18)
HSLhsl(95, 67%, 22%)
HSVhsv(95, 80%, 36%)
CMYKcmyk(46.7%, 0%, 80.4%, 63.9%)
CIE-LABlab(34.70, -28.70, 35.45)
CIE-LCHlch(34.70, 45.61, 128.99°)
OKLaboklab(42.75% -0.0801 0.0793)
OKLCHoklch(42.75% 0.113 135.3)
XYZxyz(5.2028, 8.3506, 1.9098)
Luminance0.0835 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315C12 #3D125C
analogous
#565C12 #315C12 #125C18
triadic
#315C12 #12315C #5C1231
tetradic
#315C12 #12565C #3D125C #5C1812
square
#315C12 #12565C #3D125C #5C1812
split-complementary
#315C12 #18125C #5C1256
monochromatic
#0E1A05 #162908 #315C12 #4C8F1C #68C226

Accessibility & contrast

On white

7.86
#315C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#315C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315C12
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315C12#FFFFFF#000000##FFFFFF
##315C121.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605404
Deuteranopia (green-blind)
#5A501A
Tritanopia (blue-blind)
#30584E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #315c12;
/* rgb */ color: rgb(49, 92, 18);
/* oklch */ color: oklch(42.8% 0.113 135.3);
Tailwind
colors: {
  custom: {
    50: '#6e8a56',
    500: '#315c12',
    950: '#000000',
  },
}
SCSS
$custom: #315c12;
$custom-light: #6e8a56;
$custom-dark: #000000;
JSON
{
  "hex": "#315c12",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 94.865,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42751,
    "c": 0.11276,
    "h": 135.3
  },
  "luminance": 0.08351
}

Semantic roles & 50–950 ramp

primary
#315C12
secondary
#6D3594
accent
#3EEAA2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #315C12

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

Preview Lab → · Contrast checker → · Palette generator →

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