#315D12#315D12

#315D12 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.0% C 0.114 H 135.5°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#315D12
RGBrgb(49, 93, 18)
HSLhsl(95, 68%, 22%)
HSVhsv(95, 81%, 36%)
CMYKcmyk(47.3%, 0%, 80.6%, 63.5%)
CIE-LABlab(35.05, -29.16, 35.80)
CIE-LCHlch(35.05, 46.17, 129.16°)
OKLaboklab(43.04% -0.0814 0.08)
OKLCHoklch(43.04% 0.114 135.5)
XYZxyz(5.2900, 8.5250, 1.9389)
Luminance0.0853 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315D12 #3E125D
analogous
#575D12 #315D12 #125D19
triadic
#315D12 #12315D #5D1231
tetradic
#315D12 #12575D #3E125D #5D1912
square
#315D12 #12575D #3E125D #5D1912
split-complementary
#315D12 #19125D #5D1257
monochromatic
#0E1A05 #162A08 #315D12 #4C901C #67C426

Accessibility & contrast

On white

7.76
#315D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#315D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315D12
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315D12#FFFFFF#000000##FFFFFF
##315D121.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615503
Deuteranopia (green-blind)
#5B511A
Tritanopia (blue-blind)
#30594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #315d12;
/* rgb */ color: rgb(49, 93, 18);
/* oklch */ color: oklch(43.0% 0.114 135.5);
Tailwind
colors: {
  custom: {
    50: '#6e8b56',
    500: '#315d12',
    950: '#000000',
  },
}
SCSS
$custom: #315d12;
$custom-light: #6e8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#315d12",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 95.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.43038,
    "c": 0.11415,
    "h": 135.5
  },
  "luminance": 0.08525
}

Semantic roles & 50–950 ramp

primary
#315D12
secondary
#6E3595
accent
#3DEAA3
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #315D12

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

Preview Lab → · Contrast checker → · Palette generator →

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