#315111#315111

#315111 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.098 H 132.6°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#315111
RGBrgb(49, 81, 17)
HSLhsl(90, 65%, 19%)
HSVhsv(90, 79%, 32%)
CMYKcmyk(39.5%, 0%, 79%, 68.2%)
CIE-LABlab(30.83, -23.54, 32.03)
CIE-LCHlch(30.83, 39.75, 126.31°)
OKLaboklab(39.58% -0.0663 0.072)
OKLCHoklch(39.58% 0.098 132.6)
XYZxyz(4.3102, 6.5781, 1.5728)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315111 #311151
analogous
#515111 #315111 #115111
triadic
#315111 #113151 #511131
tetradic
#315111 #115151 #311151 #511111
square
#315111 #115151 #311151 #511111
split-complementary
#315111 #111151 #511151
monochromatic
#0F1905 #121E06 #315111 #50841C #6EB626

Accessibility & contrast

On white

9.07
#315111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#315111 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315111
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315111#FFFFFF#000000##FFFFFF
##3151111.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A06
Deuteranopia (green-blind)
#504817
Tritanopia (blue-blind)
#314D45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #315111;
/* rgb */ color: rgb(49, 81, 17);
/* oklch */ color: oklch(39.6% 0.098 132.6);
Tailwind
colors: {
  custom: {
    50: '#6c8254',
    500: '#315111',
    950: '#000000',
  },
}
SCSS
$custom: #315111;
$custom-light: #6c8254;
$custom-dark: #000000;
JSON
{
  "hex": "#315111",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 17
  },
  "hsl": {
    "h": 90,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39576,
    "c": 0.09785,
    "h": 132.6
  },
  "luminance": 0.06578
}

Semantic roles & 50–950 ramp

primary
#315111
secondary
#5F348A
accent
#40E894
background
#F6F7F5
surface
#ECEEE8
border
#C7C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315111

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

Preview Lab → · Contrast checker → · Palette generator →

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