#315311#315311

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

Color values

HEX#315311
RGBrgb(49, 83, 17)
HSLhsl(91, 66%, 20%)
HSVhsv(91, 80%, 33%)
CMYKcmyk(41%, 0%, 79.5%, 67.5%)
CIE-LABlab(31.53, -24.52, 32.73)
CIE-LCHlch(31.53, 40.89, 126.84°)
OKLaboklab(40.15% -0.0689 0.0735)
OKLCHoklch(40.15% 0.101 133.2)
XYZxyz(4.4610, 6.8797, 1.6231)
Luminance0.0688 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315311 #331153
analogous
#525311 #315311 #115312
triadic
#315311 #113153 #531131
tetradic
#315311 #115253 #331153 #531211
square
#315311 #115253 #331153 #531211
split-complementary
#315311 #121153 #531152
monochromatic
#0F1905 #132007 #315311 #4F861B #6DB926

Accessibility & contrast

On white

8.84
#315311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #315311
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315311#FFFFFF#000000##FFFFFF
##3153111.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C05
Deuteranopia (green-blind)
#524917
Tritanopia (blue-blind)
#314F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #315311;
/* rgb */ color: rgb(49, 83, 17);
/* oklch */ color: oklch(40.2% 0.101 133.2);
Tailwind
colors: {
  custom: {
    50: '#6d8354',
    500: '#315311',
    950: '#000000',
  },
}
SCSS
$custom: #315311;
$custom-light: #6d8354;
$custom-dark: #000000;
JSON
{
  "hex": "#315311",
  "rgb": {
    "r": 49,
    "g": 83,
    "b": 17
  },
  "hsl": {
    "h": 90.909,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.40152,
    "c": 0.10073,
    "h": 133.2
  },
  "luminance": 0.0688
}

Semantic roles & 50–950 ramp

primary
#315311
secondary
#61348C
accent
#3FE996
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315311

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

Preview Lab → · Contrast checker → · Palette generator →

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