#315F0D#315F0D

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

Color values

HEX#315F0D
RGBrgb(49, 95, 13)
HSLhsl(94, 76%, 21%)
HSVhsv(94, 86%, 37%)
CMYKcmyk(48.4%, 0%, 86.3%, 62.7%)
CIE-LABlab(35.73, -30.37, 38.18)
CIE-LCHlch(35.73, 48.78, 128.50°)
OKLaboklab(43.58% -0.085 0.0842)
OKLCHoklch(43.58% 0.12 135.3)
XYZxyz(5.4314, 8.8661, 1.8058)
Luminance0.0887 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315F0D #3B0D5F
analogous
#5A5F0D #315F0D #0D5F12
triadic
#315F0D #0D315F #5F0D31
tetradic
#315F0D #0D5A5F #3B0D5F #5F120D
square
#315F0D #0D5A5F #3B0D5F #5F120D
split-complementary
#315F0D #120D5F #5F0D5A
monochromatic
#0E1B04 #152906 #315F0D #4D9514 #69CB1C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315F0D#FFFFFF#000000##FFFFFF
##315F0D1.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)
#5D5317
Tritanopia (blue-blind)
#305B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #315f0d;
/* rgb */ color: rgb(49, 95, 13);
/* oklch */ color: oklch(43.6% 0.120 135.3);
Tailwind
colors: {
  custom: {
    50: '#6e8d54',
    500: '#315f0d',
    950: '#000000',
  },
}
SCSS
$custom: #315f0d;
$custom-light: #6e8d54;
$custom-dark: #000000;
JSON
{
  "hex": "#315f0d",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 13
  },
  "hsl": {
    "h": 93.659,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.43581,
    "c": 0.11962,
    "h": 135.3
  },
  "luminance": 0.08866
}

Semantic roles & 50–950 ramp

primary
#315F0D
secondary
#6A2F99
accent
#35F39F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #315F0D

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

Preview Lab → · Contrast checker → · Palette generator →

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