#315512#315512

#315512 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.7% C 0.103 H 133.8°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#315512
RGBrgb(49, 85, 18)
HSLhsl(92, 65%, 20%)
HSVhsv(92, 79%, 33%)
CMYKcmyk(42.4%, 0%, 78.8%, 66.7%)
CIE-LABlab(32.24, -25.41, 33.02)
CIE-LCHlch(32.24, 41.67, 127.58°)
OKLaboklab(40.74% -0.0713 0.0742)
OKLCHoklch(40.74% 0.103 133.8)
XYZxyz(4.6242, 7.1934, 1.7170)
Luminance0.0719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315512 #361255
analogous
#525512 #315512 #125514
triadic
#315512 #123155 #551231
tetradic
#315512 #125255 #361255 #551412
square
#315512 #125255 #361255 #551412
split-complementary
#315512 #141255 #551252
monochromatic
#0F1905 #142207 #315512 #4E881D #6BBA27

Accessibility & contrast

On white

8.61
#315512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#315512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315512
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315512#FFFFFF#000000##FFFFFF
##3155121.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E06
Deuteranopia (green-blind)
#544B18
Tritanopia (blue-blind)
#315148
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #315512;
/* rgb */ color: rgb(49, 85, 18);
/* oklch */ color: oklch(40.7% 0.103 133.8);
Tailwind
colors: {
  custom: {
    50: '#6d8555',
    500: '#315512',
    950: '#000000',
  },
}
SCSS
$custom: #315512;
$custom-light: #6d8555;
$custom-dark: #000000;
JSON
{
  "hex": "#315512",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 18
  },
  "hsl": {
    "h": 92.239,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40736,
    "c": 0.10291,
    "h": 133.8
  },
  "luminance": 0.07194
}

Semantic roles & 50–950 ramp

primary
#315512
secondary
#65358E
accent
#40E89A
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315512

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

Preview Lab → · Contrast checker → · Palette generator →

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