#315810#315810

#315810 is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.6% C 0.108 H 134.2°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#315810
RGBrgb(49, 88, 16)
HSLhsl(93, 69%, 20%)
HSVhsv(93, 82%, 35%)
CMYKcmyk(44.3%, 0%, 81.8%, 65.5%)
CIE-LABlab(33.29, -26.98, 34.84)
CIE-LCHlch(33.29, 44.07, 127.76°)
OKLaboklab(41.59% -0.0757 0.0777)
OKLCHoklch(41.59% 0.108 134.2)
XYZxyz(4.8498, 7.6696, 1.7149)
Luminance0.0767 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315810 #371058
analogous
#555810 #315810 #105813
triadic
#315810 #103158 #581031
tetradic
#315810 #105558 #371058 #581310
square
#315810 #105558 #371058 #581310
split-complementary
#315810 #131058 #581055
monochromatic
#0E1A05 #142407 #315810 #4E8C19 #6BC023

Accessibility & contrast

On white

8.29
#315810 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#315810 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315810
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315810#FFFFFF#000000##FFFFFF
##3158101.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5002
Deuteranopia (green-blind)
#564D17
Tritanopia (blue-blind)
#31544A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #315810;
/* rgb */ color: rgb(49, 88, 16);
/* oklch */ color: oklch(41.6% 0.108 134.2);
Tailwind
colors: {
  custom: {
    50: '#6d8754',
    500: '#315810',
    950: '#000000',
  },
}
SCSS
$custom: #315810;
$custom-light: #6d8754;
$custom-dark: #000000;
JSON
{
  "hex": "#315810",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 16
  },
  "hsl": {
    "h": 92.5,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.41585,
    "c": 0.10846,
    "h": 134.2
  },
  "luminance": 0.0767
}

Semantic roles & 50–950 ramp

primary
#315810
secondary
#663291
accent
#3CEC9B
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315810

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

Preview Lab → · Contrast checker → · Palette generator →

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