#31560F#31560F

#31560F is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 41.0% C 0.106 H 133.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#31560F
RGBrgb(49, 86, 15)
HSLhsl(91, 70%, 20%)
HSVhsv(91, 83%, 34%)
CMYKcmyk(43%, 0%, 82.6%, 66.3%)
CIE-LABlab(32.57, -26.10, 34.53)
CIE-LCHlch(32.57, 43.29, 127.09°)
OKLaboklab(41% -0.0734 0.0769)
OKLCHoklch(41% 0.106 133.7)
XYZxyz(4.6806, 7.3428, 1.6225)
Luminance0.0734 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31560F #340F56
analogous
#54560F #31560F #0F5611
triadic
#31560F #0F3156 #560F31
tetradic
#31560F #0F5456 #340F56 #56110F
square
#31560F #0F5456 #340F56 #56110F
split-complementary
#31560F #110F56 #560F54
monochromatic
#0F1A05 #132206 #31560F #4F8A18 #6CBE21

Accessibility & contrast

On white

8.51
#31560F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#31560F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31560F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31560F#FFFFFF#000000##FFFFFF
##31560F1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4E01
Deuteranopia (green-blind)
#554C16
Tritanopia (blue-blind)
#315249
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #31560f;
/* rgb */ color: rgb(49, 86, 15);
/* oklch */ color: oklch(41.0% 0.106 133.7);
Tailwind
colors: {
  custom: {
    50: '#6d8654',
    500: '#31560f',
    950: '#000000',
  },
}
SCSS
$custom: #31560f;
$custom-light: #6d8654;
$custom-dark: #000000;
JSON
{
  "hex": "#31560f",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 15
  },
  "hsl": {
    "h": 91.268,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.41001,
    "c": 0.10629,
    "h": 133.7
  },
  "luminance": 0.07343
}

Semantic roles & 50–950 ramp

primary
#31560F
secondary
#623190
accent
#3BED98
background
#F6F8F5
surface
#ECEFE8
border
#C7CAC4
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #31560F

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

Preview Lab → · Contrast checker → · Palette generator →

#31560F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva