#31510F#31510F

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

Color values

HEX#31510F
RGBrgb(49, 81, 15)
HSLhsl(89, 69%, 19%)
HSVhsv(89, 81%, 32%)
CMYKcmyk(39.5%, 0%, 81.5%, 68.2%)
CIE-LABlab(30.81, -23.68, 32.83)
CIE-LCHlch(30.81, 40.48, 125.81°)
OKLaboklab(39.56% -0.0668 0.0733)
OKLCHoklch(39.56% 0.099 132.3)
XYZxyz(4.2952, 6.5721, 1.4941)
Luminance0.0657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31510F #2F0F51
analogous
#51500F #31510F #10510F
triadic
#31510F #0F3151 #510F31
tetradic
#31510F #0F5150 #2F0F51 #510F10
square
#31510F #0F5150 #2F0F51 #510F10
split-complementary
#31510F #0F1051 #500F51
monochromatic
#101A05 #121D05 #31510F #508519 #6FB822

Accessibility & contrast

On white

9.07
#31510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#31510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##31510F#FFFFFF#000000##FFFFFF
##31510F1.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A03
Deuteranopia (green-blind)
#504816
Tritanopia (blue-blind)
#324D44
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31510f;
/* rgb */ color: rgb(49, 81, 15);
/* oklch */ color: oklch(39.6% 0.099 132.3);
Tailwind
colors: {
  custom: {
    50: '#6c8253',
    500: '#31510f',
    950: '#000000',
  },
}
SCSS
$custom: #31510f;
$custom-light: #6c8253;
$custom-dark: #000000;
JSON
{
  "hex": "#31510f",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 89.091,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.3956,
    "c": 0.09921,
    "h": 132.3
  },
  "luminance": 0.06572
}

Semantic roles & 50–950 ramp

primary
#31510F
secondary
#5D318B
accent
#3CEC91
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #31510F

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

Preview Lab → · Contrast checker → · Palette generator →

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