#315F0F#315F0F

#315F0F is a dark, moderate yellow-green. Relative luminance 0.089; OKLCH L 43.6% C 0.119 H 135.5°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#315F0F
RGBrgb(49, 95, 15)
HSLhsl(95, 73%, 22%)
HSVhsv(95, 84%, 37%)
CMYKcmyk(48.4%, 0%, 84.2%, 62.7%)
CIE-LABlab(35.74, -30.25, 37.53)
CIE-LCHlch(35.74, 48.21, 128.87°)
OKLaboklab(43.59% -0.0845 0.0832)
OKLCHoklch(43.59% 0.119 135.5)
XYZxyz(5.4449, 8.8715, 1.8773)
Luminance0.0887 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315F0F #3D0F5F
analogous
#595F0F #315F0F #0F5F15
triadic
#315F0F #0F315F #5F0F31
tetradic
#315F0F #0F595F #3D0F5F #5F150F
square
#315F0F #0F595F #3D0F5F #5F150F
split-complementary
#315F0F #150F5F #5F0F59
monochromatic
#0E1A04 #162A07 #315F0F #4C9417 #68C920

Accessibility & contrast

On white

7.57
#315F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#315F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315F0F
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315F0F#FFFFFF#000000##FFFFFF
##315F0F1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635600
Deuteranopia (green-blind)
#5D5318
Tritanopia (blue-blind)
#2F5B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #315f0f;
/* rgb */ color: rgb(49, 95, 15);
/* oklch */ color: oklch(43.6% 0.119 135.5);
Tailwind
colors: {
  custom: {
    50: '#6e8d55',
    500: '#315f0f',
    950: '#000000',
  },
}
SCSS
$custom: #315f0f;
$custom-light: #6e8d55;
$custom-dark: #000000;
JSON
{
  "hex": "#315f0f",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 15
  },
  "hsl": {
    "h": 94.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.43593,
    "c": 0.1186,
    "h": 135.5
  },
  "luminance": 0.08872
}

Semantic roles & 50–950 ramp

primary
#315F0F
secondary
#6D3298
accent
#38EFA2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #315F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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