#315B10#315B10

#315B10 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.4% C 0.113 H 134.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#315B10
RGBrgb(49, 91, 16)
HSLhsl(94, 70%, 21%)
HSVhsv(94, 82%, 36%)
CMYKcmyk(46.2%, 0%, 82.4%, 64.3%)
CIE-LABlab(34.34, -28.38, 35.86)
CIE-LCHlch(34.34, 45.73, 128.36°)
OKLaboklab(42.45% -0.0794 0.0798)
OKLCHoklch(42.45% 0.113 134.9)
XYZxyz(5.1011, 8.1723, 1.7987)
Luminance0.0817 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315B10 #3A105B
analogous
#565B10 #315B10 #105B14
triadic
#315B10 #10315B #5B1031
tetradic
#315B10 #10565B #3A105B #5B1410
square
#315B10 #10565B #3A105B #5B1410
split-complementary
#315B10 #14105B #5B1056
monochromatic
#0E1A05 #152707 #315B10 #4D8F19 #69C322

Accessibility & contrast

On white

7.97
#315B10 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#315B10 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315B10
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315B10#FFFFFF#000000##FFFFFF
##315B101.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5301
Deuteranopia (green-blind)
#595018
Tritanopia (blue-blind)
#30574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #315b10;
/* rgb */ color: rgb(49, 91, 16);
/* oklch */ color: oklch(42.4% 0.113 134.9);
Tailwind
colors: {
  custom: {
    50: '#6e8a55',
    500: '#315b10',
    950: '#000000',
  },
}
SCSS
$custom: #315b10;
$custom-light: #6e8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#315b10",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 16
  },
  "hsl": {
    "h": 93.6,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42448,
    "c": 0.11261,
    "h": 134.9
  },
  "luminance": 0.08173
}

Semantic roles & 50–950 ramp

primary
#315B10
secondary
#693394
accent
#3BED9F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315B10

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

Preview Lab → · Contrast checker → · Palette generator →

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