#31550F#31550F

#31550F is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.7% C 0.105 H 133.4°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#31550F
RGBrgb(49, 85, 15)
HSLhsl(91, 70%, 20%)
HSVhsv(91, 82%, 33%)
CMYKcmyk(42.4%, 0%, 82.4%, 66.7%)
CIE-LABlab(32.22, -25.63, 34.20)
CIE-LCHlch(32.22, 42.73, 126.85°)
OKLaboklab(40.71% -0.0721 0.0762)
OKLCHoklch(40.71% 0.105 133.4)
XYZxyz(4.6013, 7.1842, 1.5961)
Luminance0.0718 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31550F #330F55
analogous
#54550F #31550F #0F5510
triadic
#31550F #0F3155 #550F31
tetradic
#31550F #0F5455 #330F55 #55100F
square
#31550F #0F5455 #330F55 #55100F
split-complementary
#31550F #100F55 #550F54
monochromatic
#0F1A05 #132106 #31550F #4F8918 #6DBD21

Accessibility & contrast

On white

8.62
#31550F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#31550F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31550F
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31550F#FFFFFF#000000##FFFFFF
##31550F1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E02
Deuteranopia (green-blind)
#544B16
Tritanopia (blue-blind)
#315148
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #31550f;
/* rgb */ color: rgb(49, 85, 15);
/* oklch */ color: oklch(40.7% 0.105 133.4);
Tailwind
colors: {
  custom: {
    50: '#6d8553',
    500: '#31550f',
    950: '#000000',
  },
}
SCSS
$custom: #31550f;
$custom-light: #6d8553;
$custom-dark: #000000;
JSON
{
  "hex": "#31550f",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 15
  },
  "hsl": {
    "h": 90.857,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.40713,
    "c": 0.10488,
    "h": 133.4
  },
  "luminance": 0.07184
}

Semantic roles & 50–950 ramp

primary
#31550F
secondary
#61318F
accent
#3BED96
background
#F6F8F4
surface
#ECEFE8
border
#C7CAC4
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #31550F

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

Preview Lab → · Contrast checker → · Palette generator →

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