#315218#315218

#315218 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 39.9% C 0.094 H 134.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#315218
RGBrgb(49, 82, 24)
HSLhsl(94, 55%, 21%)
HSVhsv(94, 71%, 32%)
CMYKcmyk(40.2%, 0%, 70.7%, 67.8%)
CIE-LABlab(31.24, -23.42, 29.27)
CIE-LCHlch(31.24, 37.49, 128.67°)
OKLaboklab(39.93% -0.0653 0.0673)
OKLCHoklch(39.93% 0.094 134.2)
XYZxyz(4.4487, 6.7533, 1.9331)
Luminance0.0675 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315218 #391852
analogous
#4E5218 #315218 #18521C
triadic
#315218 #183152 #521831
tetradic
#315218 #184E52 #391852 #521C18
square
#315218 #184E52 #391852 #521C18
split-complementary
#315218 #1C1852 #52184E
monochromatic
#0E1807 #15230A #315218 #4D8126 #6AB134

Accessibility & contrast

On white

8.93
#315218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#315218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315218
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315218#FFFFFF#000000##FFFFFF
##3152181.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B11
Deuteranopia (green-blind)
#51491D
Tritanopia (blue-blind)
#314F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #315218;
/* rgb */ color: rgb(49, 82, 24);
/* oklch */ color: oklch(39.9% 0.094 134.2);
Tailwind
colors: {
  custom: {
    50: '#6c8358',
    500: '#315218',
    950: '#000000',
  },
}
SCSS
$custom: #315218;
$custom-light: #6c8358;
$custom-dark: #000000;
JSON
{
  "hex": "#315218",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 94.138,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.39932,
    "c": 0.09379,
    "h": 134.2
  },
  "luminance": 0.06754
}

Semantic roles & 50–950 ramp

primary
#315218
secondary
#683D89
accent
#4ADE9E
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315218

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

Preview Lab → · Contrast checker → · Palette generator →

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