#315213#315213

#315213 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.9% C 0.098 H 133.2°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#315213
RGBrgb(49, 82, 19)
HSLhsl(91, 62%, 20%)
HSVhsv(91, 77%, 32%)
CMYKcmyk(40.2%, 0%, 76.8%, 67.8%)
CIE-LABlab(31.19, -23.87, 31.54)
CIE-LCHlch(31.19, 39.56, 127.12°)
OKLaboklab(39.88% -0.067 0.0713)
OKLCHoklch(39.88% 0.098 133.2)
XYZxyz(4.4014, 6.7344, 1.6839)
Luminance0.0673 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315213 #341352
analogous
#505213 #315213 #135215
triadic
#315213 #133152 #521331
tetradic
#315213 #135052 #341352 #521513
square
#315213 #135052 #341352 #521513
split-complementary
#315213 #151352 #521350
monochromatic
#0F1906 #132007 #315213 #4F841F #6CB52A

Accessibility & contrast

On white

8.95
#315213 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #315213
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315213#FFFFFF#000000##FFFFFF
##3152131.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B09
Deuteranopia (green-blind)
#514819
Tritanopia (blue-blind)
#314E46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #315213;
/* rgb */ color: rgb(49, 82, 19);
/* oklch */ color: oklch(39.9% 0.098 133.2);
Tailwind
colors: {
  custom: {
    50: '#6c8355',
    500: '#315213',
    950: '#000000',
  },
}
SCSS
$custom: #315213;
$custom-light: #6c8355;
$custom-dark: #000000;
JSON
{
  "hex": "#315213",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 19
  },
  "hsl": {
    "h": 91.429,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39881,
    "c": 0.09785,
    "h": 133.2
  },
  "luminance": 0.06735
}

Semantic roles & 50–950 ramp

primary
#315213
secondary
#62368A
accent
#42E598
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315213

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

Preview Lab → · Contrast checker → · Palette generator →

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