#315017#315017

#315017 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.3% C 0.092 H 133.4°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#315017
RGBrgb(49, 80, 23)
HSLhsl(93, 55%, 20%)
HSVhsv(93, 71%, 31%)
CMYKcmyk(38.8%, 0%, 71.2%, 68.6%)
CIE-LABlab(30.53, -22.52, 28.99)
CIE-LCHlch(30.53, 36.71, 127.84°)
OKLaboklab(39.35% -0.063 0.0666)
OKLCHoklch(39.35% 0.092 133.4)
XYZxyz(4.2899, 6.4520, 1.8298)
Luminance0.0645 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315017 #361750
analogous
#4D5017 #315017 #17501A
triadic
#315017 #173150 #501731
tetradic
#315017 #174D50 #361750 #501A17
square
#315017 #174D50 #361750 #501A17
split-complementary
#315017 #1A1750 #50174D
monochromatic
#0F1807 #142009 #315017 #4E8025 #6BAF32

Accessibility & contrast

On white

9.17
#315017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#315017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315017
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315017#FFFFFF#000000##FFFFFF
##3150171.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534910
Deuteranopia (green-blind)
#4F471C
Tritanopia (blue-blind)
#314D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #315017;
/* rgb */ color: rgb(49, 80, 23);
/* oklch */ color: oklch(39.3% 0.092 133.4);
Tailwind
colors: {
  custom: {
    50: '#6c8157',
    500: '#315017',
    950: '#000000',
  },
}
SCSS
$custom: #315017;
$custom-light: #6c8157;
$custom-dark: #000000;
JSON
{
  "hex": "#315017",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 92.632,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39346,
    "c": 0.09161,
    "h": 133.4
  },
  "luminance": 0.06452
}

Semantic roles & 50–950 ramp

primary
#315017
secondary
#653C87
accent
#49DF9A
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315017

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

Preview Lab → · Contrast checker → · Palette generator →

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