#315312#315312

#315312 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.2% C 0.100 H 133.3°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#315312
RGBrgb(49, 83, 18)
HSLhsl(91, 64%, 20%)
HSVhsv(91, 78%, 33%)
CMYKcmyk(41%, 0%, 78.3%, 67.5%)
CIE-LABlab(31.54, -24.44, 32.32)
CIE-LCHlch(31.54, 40.52, 127.10°)
OKLaboklab(40.16% -0.0686 0.0728)
OKLCHoklch(40.16% 0.1 133.3)
XYZxyz(4.4690, 6.8829, 1.6652)
Luminance0.0688 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315312 #341253
analogous
#515312 #315312 #125314
triadic
#315312 #123153 #531231
tetradic
#315312 #125153 #341253 #531412
square
#315312 #125153 #341253 #531412
split-complementary
#315312 #141253 #531251
monochromatic
#0F1905 #132107 #315312 #4F851D #6CB828

Accessibility & contrast

On white

8.84
#315312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#315312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315312
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315312#FFFFFF#000000##FFFFFF
##3153121.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#524918
Tritanopia (blue-blind)
#314F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #315312;
/* rgb */ color: rgb(49, 83, 18);
/* oklch */ color: oklch(40.2% 0.100 133.3);
Tailwind
colors: {
  custom: {
    50: '#6d8355',
    500: '#315312',
    950: '#000000',
  },
}
SCSS
$custom: #315312;
$custom-light: #6d8355;
$custom-dark: #000000;
JSON
{
  "hex": "#315312",
  "rgb": {
    "r": 49,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 91.385,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.4016,
    "c": 0.10003,
    "h": 133.3
  },
  "luminance": 0.06883
}

Semantic roles & 50–950 ramp

primary
#315312
secondary
#62358C
accent
#40E798
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315312

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

Preview Lab → · Contrast checker → · Palette generator →

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