#315018#315018

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

Color values

HEX#315018
RGBrgb(49, 80, 24)
HSLhsl(93, 54%, 20%)
HSVhsv(93, 70%, 31%)
CMYKcmyk(38.8%, 0%, 70%, 68.6%)
CIE-LABlab(30.54, -22.42, 28.51)
CIE-LCHlch(30.54, 36.27, 128.18°)
OKLaboklab(39.36% -0.0626 0.0657)
OKLCHoklch(39.36% 0.091 133.6)
XYZxyz(4.3001, 6.4561, 1.8836)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315018 #371850
analogous
#4D5018 #315018 #18501B
triadic
#315018 #183150 #501831
tetradic
#315018 #184D50 #371850 #501B18
square
#315018 #184D50 #371850 #501B18
split-complementary
#315018 #1B1850 #50184D
monochromatic
#0E1807 #14210A #315018 #4E7F26 #6BAE34

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315018#FFFFFF#000000##FFFFFF
##3150181.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)
#534911
Deuteranopia (green-blind)
#4F471C
Tritanopia (blue-blind)
#314D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #315018;
/* rgb */ color: rgb(49, 80, 24);
/* oklch */ color: oklch(39.4% 0.091 133.6);
Tailwind
colors: {
  custom: {
    50: '#6c8158',
    500: '#315018',
    950: '#000000',
  },
}
SCSS
$custom: #315018;
$custom-light: #6c8158;
$custom-dark: #000000;
JSON
{
  "hex": "#315018",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 24
  },
  "hsl": {
    "h": 93.214,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.39358,
    "c": 0.09073,
    "h": 133.6
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

primary
#315018
secondary
#663D87
accent
#4BDD9C
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315018

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

Preview Lab → · Contrast checker → · Palette generator →

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