#315A12#315A12

#315A12 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.2% C 0.110 H 134.9°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#315A12
RGBrgb(49, 90, 18)
HSLhsl(94, 67%, 21%)
HSVhsv(94, 80%, 35%)
CMYKcmyk(45.6%, 0%, 80%, 64.7%)
CIE-LABlab(34.00, -27.78, 34.77)
CIE-LCHlch(34.00, 44.50, 128.62°)
OKLaboklab(42.18% -0.0777 0.0779)
OKLCHoklch(42.18% 0.11 134.9)
XYZxyz(5.0319, 8.0087, 1.8528)
Luminance0.0801 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315A12 #3B125A
analogous
#555A12 #315A12 #125A17
triadic
#315A12 #12315A #5A1231
tetradic
#315A12 #12555A #3B125A #5A1712
square
#315A12 #12555A #3B125A #5A1712
split-complementary
#315A12 #17125A #5A1255
monochromatic
#0E1A05 #152708 #315A12 #4D8D1C #69C026

Accessibility & contrast

On white

8.07
#315A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#315A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315A12
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315A12#FFFFFF#000000##FFFFFF
##315A121.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5204
Deuteranopia (green-blind)
#584F19
Tritanopia (blue-blind)
#30564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #315a12;
/* rgb */ color: rgb(49, 90, 18);
/* oklch */ color: oklch(42.2% 0.110 134.9);
Tailwind
colors: {
  custom: {
    50: '#6d8956',
    500: '#315a12',
    950: '#000000',
  },
}
SCSS
$custom: #315a12;
$custom-light: #6d8956;
$custom-dark: #000000;
JSON
{
  "hex": "#315a12",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 94.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42175,
    "c": 0.10998,
    "h": 134.9
  },
  "luminance": 0.08009
}

Semantic roles & 50–950 ramp

primary
#315A12
secondary
#6A3593
accent
#3EEAA0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315A12

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

Preview Lab → · Contrast checker → · Palette generator →

#315A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva