#31680F#31680F

#31680F is a mid, vivid yellow-green. Relative luminance 0.106; OKLCH L 46.2% C 0.130 H 136.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#31680F
RGBrgb(49, 104, 15)
HSLhsl(97, 75%, 23%)
HSVhsv(97, 86%, 41%)
CMYKcmyk(52.9%, 0%, 85.6%, 59.2%)
CIE-LABlab(38.88, -34.16, 40.45)
CIE-LCHlch(38.88, 52.94, 130.18°)
OKLaboklab(46.18% -0.095 0.0893)
OKLCHoklch(46.18% 0.13 136.8)
XYZxyz(6.3030, 10.5876, 2.1633)
Luminance0.1059 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31680F #460F68
analogous
#5D680F #31680F #0F681A
triadic
#31680F #0F3168 #680F31
tetradic
#31680F #0F5D68 #460F68 #681A0F
square
#31680F #0F5D68 #460F68 #681A0F
split-complementary
#31680F #1A0F68 #680F5D
monochromatic
#0D1B04 #183307 #31680F #4A9D17 #63D31E

Accessibility & contrast

On white

6.74
#31680F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#31680F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31680F
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31680F#FFFFFF#000000##FFFFFF
##31680F1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5E00
Deuteranopia (green-blind)
#655A1A
Tritanopia (blue-blind)
#2E6458
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #31680f;
/* rgb */ color: rgb(49, 104, 15);
/* oklch */ color: oklch(46.2% 0.130 136.8);
Tailwind
colors: {
  custom: {
    50: '#709457',
    500: '#31680f',
    950: '#000000',
  },
}
SCSS
$custom: #31680f;
$custom-light: #709457;
$custom-dark: #000000;
JSON
{
  "hex": "#31680f",
  "rgb": {
    "r": 49,
    "g": 104,
    "b": 15
  },
  "hsl": {
    "h": 97.079,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.46176,
    "c": 0.13039,
    "h": 136.8
  },
  "luminance": 0.10588
}

Semantic roles & 50–950 ramp

primary
#31680F
secondary
#7632A1
accent
#36F1AA
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #31680F

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

Preview Lab → · Contrast checker → · Palette generator →

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