#315F12#315F12

#315F12 is a dark, moderate yellow-green. Relative luminance 0.089; OKLCH L 43.6% C 0.117 H 135.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#315F12
RGBrgb(49, 95, 18)
HSLhsl(96, 68%, 22%)
HSVhsv(96, 81%, 37%)
CMYKcmyk(48.4%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.75, -30.06, 36.48)
CIE-LCHlch(35.75, 47.27, 129.49°)
OKLaboklab(43.61% -0.0838 0.0815)
OKLCHoklch(43.61% 0.117 135.8)
XYZxyz(5.4679, 8.8807, 1.9982)
Luminance0.0888 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315F12 #40125F
analogous
#585F12 #315F12 #125F19
triadic
#315F12 #12315F #5F1231
tetradic
#315F12 #12585F #40125F #5F1912
square
#315F12 #12585F #40125F #5F1912
split-complementary
#315F12 #19125F #5F1258
monochromatic
#0D1A05 #162C08 #315F12 #4C921C #66C625

Accessibility & contrast

On white

7.56
#315F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#315F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315F12
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315F12#FFFFFF#000000##FFFFFF
##315F121.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635602
Deuteranopia (green-blind)
#5D531A
Tritanopia (blue-blind)
#2F5B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #315f12;
/* rgb */ color: rgb(49, 95, 18);
/* oklch */ color: oklch(43.6% 0.117 135.8);
Tailwind
colors: {
  custom: {
    50: '#6e8d56',
    500: '#315f12',
    950: '#000000',
  },
}
SCSS
$custom: #315f12;
$custom-light: #6e8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#315f12",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 95.844,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43613,
    "c": 0.11688,
    "h": 135.8
  },
  "luminance": 0.08881
}

Semantic roles & 50–950 ramp

primary
#315F12
secondary
#703697
accent
#3DEBA5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #315F12

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

Preview Lab → · Contrast checker → · Palette generator →

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