#315110#315110

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

Color values

HEX#315110
RGBrgb(49, 81, 16)
HSLhsl(90, 67%, 19%)
HSVhsv(90, 80%, 32%)
CMYKcmyk(39.5%, 0%, 80.2%, 68.2%)
CIE-LABlab(30.82, -23.61, 32.43)
CIE-LCHlch(30.82, 40.12, 126.05°)
OKLaboklab(39.57% -0.0665 0.0727)
OKLCHoklch(39.57% 0.099 132.5)
XYZxyz(4.3025, 6.5751, 1.5325)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315110 #301051
analogous
#515110 #315110 #115110
triadic
#315110 #103151 #511031
tetradic
#315110 #105151 #301051 #511011
square
#315110 #105151 #301051 #511011
split-complementary
#315110 #101151 #511051
monochromatic
#0F1A05 #121E06 #315110 #50841A #6FB724

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315110#FFFFFF#000000##FFFFFF
##3151101.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)
#554A05
Deuteranopia (green-blind)
#504816
Tritanopia (blue-blind)
#324D44
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #315110;
/* rgb */ color: rgb(49, 81, 16);
/* oklch */ color: oklch(39.6% 0.099 132.5);
Tailwind
colors: {
  custom: {
    50: '#6c8253',
    500: '#315110',
    950: '#000000',
  },
}
SCSS
$custom: #315110;
$custom-light: #6c8253;
$custom-dark: #000000;
JSON
{
  "hex": "#315110",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 16
  },
  "hsl": {
    "h": 89.538,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39568,
    "c": 0.09854,
    "h": 132.5
  },
  "luminance": 0.06575
}

Semantic roles & 50–950 ramp

primary
#315110
secondary
#5E328B
accent
#3EEA93
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315110

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

Preview Lab → · Contrast checker → · Palette generator →

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