#315518#315518

#315518 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.8% C 0.098 H 134.9°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#315518
RGBrgb(49, 85, 24)
HSLhsl(95, 56%, 21%)
HSVhsv(95, 72%, 33%)
CMYKcmyk(42.4%, 0%, 71.8%, 66.7%)
CIE-LABlab(32.29, -24.90, 30.40)
CIE-LCHlch(32.29, 39.30, 129.31°)
OKLaboklab(40.79% -0.0694 0.0697)
OKLCHoklch(40.79% 0.098 134.9)
XYZxyz(4.6799, 7.2157, 2.0102)
Luminance0.0722 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315518 #3C1855
analogous
#505518 #315518 #18551E
triadic
#315518 #183155 #551831
tetradic
#315518 #185055 #3C1855 #551E18
square
#315518 #185055 #3C1855 #551E18
split-complementary
#315518 #1E1855 #551850
monochromatic
#0E1807 #15250B #315518 #4D8525 #68B433

Accessibility & contrast

On white

8.60
#315518 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#315518 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315518
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315518#FFFFFF#000000##FFFFFF
##3155181.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E10
Deuteranopia (green-blind)
#534B1D
Tritanopia (blue-blind)
#305249
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #315518;
/* rgb */ color: rgb(49, 85, 24);
/* oklch */ color: oklch(40.8% 0.098 134.9);
Tailwind
colors: {
  custom: {
    50: '#6c8558',
    500: '#315518',
    950: '#000000',
  },
}
SCSS
$custom: #315518;
$custom-light: #6c8558;
$custom-dark: #000000;
JSON
{
  "hex": "#315518",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 24
  },
  "hsl": {
    "h": 95.41,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.40793,
    "c": 0.09832,
    "h": 134.9
  },
  "luminance": 0.07216
}

Semantic roles & 50–950 ramp

primary
#315518
secondary
#6B3D8C
accent
#49DFA1
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315518

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

Preview Lab → · Contrast checker → · Palette generator →

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