#315011#315011

#315011 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.3% C 0.096 H 132.3°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#315011
RGBrgb(49, 80, 17)
HSLhsl(90, 65%, 19%)
HSVhsv(90, 79%, 31%)
CMYKcmyk(38.8%, 0%, 78.8%, 68.6%)
CIE-LABlab(30.47, -23.04, 31.67)
CIE-LCHlch(30.47, 39.17, 126.03°)
OKLaboklab(39.29% -0.0649 0.0712)
OKLCHoklch(39.29% 0.096 132.3)
XYZxyz(4.2364, 6.4306, 1.5482)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315011 #301150
analogous
#505011 #315011 #125011
triadic
#315011 #113150 #501131
tetradic
#315011 #115050 #301150 #501112
square
#315011 #115050 #301150 #501112
split-complementary
#315011 #111250 #501150
monochromatic
#0F1905 #121E06 #315011 #50821C #6FB526

Accessibility & contrast

On white

9.19
#315011 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#315011 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315011
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315011#FFFFFF#000000##FFFFFF
##3150111.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544906
Deuteranopia (green-blind)
#4F4717
Tritanopia (blue-blind)
#324C44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #315011;
/* rgb */ color: rgb(49, 80, 17);
/* oklch */ color: oklch(39.3% 0.096 132.3);
Tailwind
colors: {
  custom: {
    50: '#6c8154',
    500: '#315011',
    950: '#000000',
  },
}
SCSS
$custom: #315011;
$custom-light: #6c8154;
$custom-dark: #000000;
JSON
{
  "hex": "#315011",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 17
  },
  "hsl": {
    "h": 89.524,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39288,
    "c": 0.09639,
    "h": 132.3
  },
  "luminance": 0.06431
}

Semantic roles & 50–950 ramp

primary
#315011
secondary
#5E3389
accent
#40E893
background
#F6F7F4
surface
#ECEEE8
border
#C7C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315011

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

Preview Lab → · Contrast checker → · Palette generator →

#315011 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva