#315112#315112

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

Color values

HEX#315112
RGBrgb(49, 81, 18)
HSLhsl(90, 64%, 19%)
HSVhsv(90, 78%, 32%)
CMYKcmyk(39.5%, 0%, 77.8%, 68.2%)
CIE-LABlab(30.83, -23.46, 31.61)
CIE-LCHlch(30.83, 39.36, 126.58°)
OKLaboklab(39.59% -0.066 0.0713)
OKLCHoklch(39.59% 0.097 132.8)
XYZxyz(4.3182, 6.5813, 1.6149)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315112 #321251
analogous
#515112 #315112 #125113
triadic
#315112 #123151 #511231
tetradic
#315112 #125151 #321251 #511312
square
#315112 #125151 #321251 #511312
split-complementary
#315112 #131251 #511251
monochromatic
#0F1906 #131F07 #315112 #4F831D #6EB528

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315112#FFFFFF#000000##FFFFFF
##3151121.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)
#554A08
Deuteranopia (green-blind)
#504818
Tritanopia (blue-blind)
#314D45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #315112;
/* rgb */ color: rgb(49, 81, 18);
/* oklch */ color: oklch(39.6% 0.097 132.8);
Tailwind
colors: {
  custom: {
    50: '#6c8254',
    500: '#315112',
    950: '#000000',
  },
}
SCSS
$custom: #315112;
$custom-light: #6c8254;
$custom-dark: #000000;
JSON
{
  "hex": "#315112",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 90.476,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39585,
    "c": 0.09712,
    "h": 132.8
  },
  "luminance": 0.06581
}

Semantic roles & 50–950 ramp

primary
#315112
secondary
#60358A
accent
#41E795
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315112

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

Preview Lab → · Contrast checker → · Palette generator →

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