#315A11#315A11

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

Color values

HEX#315A11
RGBrgb(49, 90, 17)
HSLhsl(94, 68%, 21%)
HSVhsv(94, 81%, 35%)
CMYKcmyk(45.6%, 0%, 81.1%, 64.7%)
CIE-LABlab(33.99, -27.85, 35.15)
CIE-LCHlch(33.99, 44.84, 128.39°)
OKLaboklab(42.17% -0.0779 0.0785)
OKLCHoklch(42.17% 0.111 134.8)
XYZxyz(5.0239, 8.0055, 1.8107)
Luminance0.0801 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315A11 #3A115A
analogous
#555A11 #315A11 #115A16
triadic
#315A11 #11315A #5A1131
tetradic
#315A11 #11555A #3A115A #5A1611
square
#315A11 #11555A #3A115A #5A1611
split-complementary
#315A11 #16115A #5A1155
monochromatic
#0E1A05 #152707 #315A11 #4D8D1B #69C124

Accessibility & contrast

On white

8.07
#315A11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #315A11
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315A11#FFFFFF#000000##FFFFFF
##315A111.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #315a11;
/* rgb */ color: rgb(49, 90, 17);
/* oklch */ color: oklch(42.2% 0.111 134.8);
Tailwind
colors: {
  custom: {
    50: '#6d8955',
    500: '#315a11',
    950: '#000000',
  },
}
SCSS
$custom: #315a11;
$custom-light: #6d8955;
$custom-dark: #000000;
JSON
{
  "hex": "#315a11",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 17
  },
  "hsl": {
    "h": 93.699,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42168,
    "c": 0.11062,
    "h": 134.8
  },
  "luminance": 0.08006
}

Semantic roles & 50–950 ramp

primary
#315A11
secondary
#693493
accent
#3DEB9F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315A11

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

Preview Lab → · Contrast checker → · Palette generator →

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