#315A0F#315A0F

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

Color values

HEX#315A0F
RGBrgb(49, 90, 15)
HSLhsl(93, 71%, 21%)
HSVhsv(93, 83%, 35%)
CMYKcmyk(45.6%, 0%, 83.3%, 64.7%)
CIE-LABlab(33.98, -27.98, 35.88)
CIE-LCHlch(33.98, 45.50, 127.95°)
OKLaboklab(42.15% -0.0784 0.0797)
OKLCHoklch(42.15% 0.112 134.5)
XYZxyz(5.0089, 7.9995, 1.7320)
Luminance0.0800 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315A0F #380F5A
analogous
#565A0F #315A0F #0F5A12
triadic
#315A0F #0F315A #5A0F31
tetradic
#315A0F #0F565A #380F5A #5A120F
square
#315A0F #0F565A #380F5A #5A120F
split-complementary
#315A0F #120F5A #5A0F56
monochromatic
#0E1A04 #142606 #315A0F #4E8E18 #6AC320

Accessibility & contrast

On white

8.08
#315A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #315A0F
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315A0F#FFFFFF#000000##FFFFFF
##315A0F1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #315a0f;
/* rgb */ color: rgb(49, 90, 15);
/* oklch */ color: oklch(42.2% 0.112 134.5);
Tailwind
colors: {
  custom: {
    50: '#6e8954',
    500: '#315a0f',
    950: '#000000',
  },
}
SCSS
$custom: #315a0f;
$custom-light: #6e8954;
$custom-dark: #000000;
JSON
{
  "hex": "#315a0f",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 92.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42154,
    "c": 0.11183,
    "h": 134.5
  },
  "luminance": 0.08
}

Semantic roles & 50–950 ramp

primary
#315A0F
secondary
#673194
accent
#3AEE9C
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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