#31700F#31700F

#31700F is a mid, vivid yellow-green. Relative luminance 0.123; OKLCH L 48.5% C 0.140 H 137.7°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#31700F
RGBrgb(49, 112, 15)
HSLhsl(99, 76%, 25%)
HSVhsv(99, 87%, 44%)
CMYKcmyk(56.3%, 0%, 86.6%, 56.1%)
CIE-LABlab(41.65, -37.45, 42.98)
CIE-LCHlch(41.65, 57.01, 131.07°)
OKLaboklab(48.46% -0.1039 0.0946)
OKLCHoklch(48.46% 0.14 137.7)
XYZxyz(7.1468, 12.2752, 2.4446)
Luminance0.1228 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31700F #4E0F70
analogous
#62700F #31700F #0F701D
triadic
#31700F #0F3170 #700F31
tetradic
#31700F #0F6270 #4E0F70 #701D0F
square
#31700F #0F6270 #4E0F70 #701D0F
split-complementary
#31700F #1D0F70 #700F62
monochromatic
#0C1B04 #193A08 #31700F #49A616 #60DC1D

Accessibility & contrast

On white

6.08
#31700F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#31700F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31700F
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31700F#FFFFFF#000000##FFFFFF
##31700F1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746500
Deuteranopia (green-blind)
#6C601B
Tritanopia (blue-blind)
#2C6C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #31700f;
/* rgb */ color: rgb(49, 112, 15);
/* oklch */ color: oklch(48.5% 0.140 137.7);
Tailwind
colors: {
  custom: {
    50: '#719a58',
    500: '#31700f',
    950: '#000000',
  },
}
SCSS
$custom: #31700f;
$custom-light: #719a58;
$custom-dark: #000000;
JSON
{
  "hex": "#31700f",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 15
  },
  "hsl": {
    "h": 98.969,
    "s": 76.378,
    "l": 24.902
  },
  "oklch": {
    "l": 0.48461,
    "c": 0.14049,
    "h": 137.7
  },
  "luminance": 0.12276
}

Semantic roles & 50–950 ramp

primary
#31700F
secondary
#7F33A8
accent
#35F3B0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #31700F

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

Preview Lab → · Contrast checker → · Palette generator →

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