#315315#315315

#315315 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.2% C 0.098 H 133.8°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#315315
RGBrgb(49, 83, 21)
HSLhsl(93, 60%, 20%)
HSVhsv(93, 75%, 33%)
CMYKcmyk(41%, 0%, 74.7%, 67.5%)
CIE-LABlab(31.56, -24.20, 31.03)
CIE-LCHlch(31.56, 39.35, 127.95°)
OKLaboklab(40.19% -0.0677 0.0705)
OKLCHoklch(40.19% 0.098 133.8)
XYZxyz(4.4952, 6.8934, 1.8030)
Luminance0.0689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315315 #371553
analogous
#505315 #315315 #155318
triadic
#315315 #153153 #531531
tetradic
#315315 #155053 #371553 #531815
square
#315315 #155053 #371553 #531815
split-complementary
#315315 #181553 #531550
monochromatic
#0E1806 #142209 #315315 #4E8421 #6BB52E

Accessibility & contrast

On white

8.83
#315315 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#315315 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315315
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315315#FFFFFF#000000##FFFFFF
##3153151.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C0C
Deuteranopia (green-blind)
#52491A
Tritanopia (blue-blind)
#315047
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #315315;
/* rgb */ color: rgb(49, 83, 21);
/* oklch */ color: oklch(40.2% 0.098 133.8);
Tailwind
colors: {
  custom: {
    50: '#6c8356',
    500: '#315315',
    950: '#000000',
  },
}
SCSS
$custom: #315315;
$custom-light: #6c8356;
$custom-dark: #000000;
JSON
{
  "hex": "#315315",
  "rgb": {
    "r": 49,
    "g": 83,
    "b": 21
  },
  "hsl": {
    "h": 92.903,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40188,
    "c": 0.09778,
    "h": 133.8
  },
  "luminance": 0.06894
}

Semantic roles & 50–950 ramp

primary
#315315
secondary
#66398B
accent
#45E39C
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315315

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

Preview Lab → · Contrast checker → · Palette generator →

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