#315A10#315A10

#315A10 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.2% C 0.111 H 134.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#315A10
RGBrgb(49, 90, 16)
HSLhsl(93, 70%, 21%)
HSVhsv(93, 82%, 35%)
CMYKcmyk(45.6%, 0%, 82.2%, 64.7%)
CIE-LABlab(33.99, -27.92, 35.52)
CIE-LCHlch(33.99, 45.18, 128.17°)
OKLaboklab(42.16% -0.0782 0.0791)
OKLCHoklch(42.16% 0.111 134.7)
XYZxyz(5.0162, 8.0024, 1.7704)
Luminance0.0800 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315A10 #39105A
analogous
#565A10 #315A10 #105A14
triadic
#315A10 #10315A #5A1031
tetradic
#315A10 #10565A #39105A #5A1410
square
#315A10 #10565A #39105A #5A1410
split-complementary
#315A10 #14105A #5A1056
monochromatic
#0E1A05 #152607 #315A10 #4D8E19 #6AC222

Accessibility & contrast

On white

8.08
#315A10 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#315A10 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315A10
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315A10#FFFFFF#000000##FFFFFF
##315A101.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5201
Deuteranopia (green-blind)
#584F18
Tritanopia (blue-blind)
#30564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #315a10;
/* rgb */ color: rgb(49, 90, 16);
/* oklch */ color: oklch(42.2% 0.111 134.7);
Tailwind
colors: {
  custom: {
    50: '#6e8955',
    500: '#315a10',
    950: '#000000',
  },
}
SCSS
$custom: #315a10;
$custom-light: #6e8955;
$custom-dark: #000000;
JSON
{
  "hex": "#315a10",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 16
  },
  "hsl": {
    "h": 93.243,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.4216,
    "c": 0.11124,
    "h": 134.7
  },
  "luminance": 0.08003
}

Semantic roles & 50–950 ramp

primary
#315A10
secondary
#683393
accent
#3BED9D
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315A10

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

Preview Lab → · Contrast checker → · Palette generator →

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