#31500F#31500F

#31500F is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.3% C 0.098 H 132.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#31500F
RGBrgb(49, 80, 15)
HSLhsl(89, 68%, 19%)
HSVhsv(89, 81%, 31%)
CMYKcmyk(38.8%, 0%, 81.3%, 68.6%)
CIE-LABlab(30.46, -23.19, 32.48)
CIE-LCHlch(30.46, 39.91, 125.52°)
OKLaboklab(39.27% -0.0655 0.0726)
OKLCHoklch(39.27% 0.098 132.1)
XYZxyz(4.2215, 6.4246, 1.4695)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31500F #2E0F50
analogous
#504E0F #31500F #11500F
triadic
#31500F #0F3150 #500F31
tetradic
#31500F #0F504E #2E0F50 #500F11
square
#31500F #0F504E #2E0F50 #500F11
split-complementary
#31500F #0F1150 #4E0F50
monochromatic
#101A05 #111C05 #31500F #518419 #70B722

Accessibility & contrast

On white

9.19
#31500F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#31500F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31500F
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31500F#FFFFFF#000000##FFFFFF
##31500F1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544903
Deuteranopia (green-blind)
#504715
Tritanopia (blue-blind)
#324C44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31500f;
/* rgb */ color: rgb(49, 80, 15);
/* oklch */ color: oklch(39.3% 0.098 132.1);
Tailwind
colors: {
  custom: {
    50: '#6c8153',
    500: '#31500f',
    950: '#000000',
  },
}
SCSS
$custom: #31500f;
$custom-light: #6c8153;
$custom-dark: #000000;
JSON
{
  "hex": "#31500f",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 15
  },
  "hsl": {
    "h": 88.615,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.39272,
    "c": 0.09777,
    "h": 132.1
  },
  "luminance": 0.06425
}

Semantic roles & 50–950 ramp

primary
#31500F
secondary
#5B318A
accent
#3DEB90
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #31500F

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

Preview Lab → · Contrast checker → · Palette generator →

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