#315418#315418

#315418 is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.5% C 0.097 H 134.6°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#315418
RGBrgb(49, 84, 24)
HSLhsl(95, 56%, 21%)
HSVhsv(95, 71%, 33%)
CMYKcmyk(41.7%, 0%, 71.4%, 67.1%)
CIE-LABlab(31.94, -24.41, 30.03)
CIE-LCHlch(31.94, 38.70, 129.11°)
OKLaboklab(40.51% -0.068 0.0689)
OKLCHoklch(40.51% 0.097 134.6)
XYZxyz(4.6017, 7.0593, 1.9841)
Luminance0.0706 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315418 #3B1854
analogous
#4F5418 #315418 #18541D
triadic
#315418 #183154 #541831
tetradic
#315418 #184F54 #3B1854 #541D18
square
#315418 #184F54 #3B1854 #541D18
split-complementary
#315418 #1D1854 #54184F
monochromatic
#0E1807 #15240A #315418 #4D8426 #69B333

Accessibility & contrast

On white

8.71
#315418 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#315418 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315418
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315418#FFFFFF#000000##FFFFFF
##3154181.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D10
Deuteranopia (green-blind)
#534A1D
Tritanopia (blue-blind)
#305148
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #315418;
/* rgb */ color: rgb(49, 84, 24);
/* oklch */ color: oklch(40.5% 0.097 134.6);
Tailwind
colors: {
  custom: {
    50: '#6c8458',
    500: '#315418',
    950: '#000000',
  },
}
SCSS
$custom: #315418;
$custom-light: #6c8458;
$custom-dark: #000000;
JSON
{
  "hex": "#315418",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 24
  },
  "hsl": {
    "h": 95,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.40506,
    "c": 0.09682,
    "h": 134.6
  },
  "luminance": 0.0706
}

Semantic roles & 50–950 ramp

primary
#315418
secondary
#6A3D8B
accent
#49DFA0
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315418

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

Preview Lab → · Contrast checker → · Palette generator →

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