#315412#315412

#315412 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.4% C 0.101 H 133.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#315412
RGBrgb(49, 84, 18)
HSLhsl(92, 65%, 20%)
HSVhsv(92, 79%, 33%)
CMYKcmyk(41.7%, 0%, 78.6%, 67.1%)
CIE-LABlab(31.89, -24.93, 32.67)
CIE-LCHlch(31.89, 41.10, 127.34°)
OKLaboklab(40.45% -0.07 0.0735)
OKLCHoklch(40.45% 0.101 133.6)
XYZxyz(4.5461, 7.0371, 1.6909)
Luminance0.0704 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315412 #351254
analogous
#525412 #315412 #125414
triadic
#315412 #123154 #541231
tetradic
#315412 #125254 #351254 #541412
square
#315412 #125254 #351254 #541412
split-complementary
#315412 #141254 #541252
monochromatic
#0F1905 #142207 #315412 #4E861D #6CB928

Accessibility & contrast

On white

8.72
#315412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#315412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315412
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315412#FFFFFF#000000##FFFFFF
##3154121.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D07
Deuteranopia (green-blind)
#534A18
Tritanopia (blue-blind)
#315047
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #315412;
/* rgb */ color: rgb(49, 84, 18);
/* oklch */ color: oklch(40.4% 0.101 133.6);
Tailwind
colors: {
  custom: {
    50: '#6d8455',
    500: '#315412',
    950: '#000000',
  },
}
SCSS
$custom: #315412;
$custom-light: #6d8455;
$custom-dark: #000000;
JSON
{
  "hex": "#315412",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 91.818,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.40448,
    "c": 0.10147,
    "h": 133.6
  },
  "luminance": 0.07037
}

Semantic roles & 50–950 ramp

primary
#315412
secondary
#64358D
accent
#40E899
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315412

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

Preview Lab → · Contrast checker → · Palette generator →

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