#31702E#31702E

#31702E is a mid, moderate green. Relative luminance 0.124; OKLCH L 48.8% C 0.118 H 142.7°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#31702E
RGBrgb(49, 112, 46)
HSLhsl(117, 42%, 31%)
HSVhsv(117, 59%, 44%)
CMYKcmyk(56.3%, 0%, 58.9%, 56.1%)
CIE-LABlab(41.90, -34.62, 30.24)
CIE-LCHlch(41.90, 45.97, 138.86°)
OKLaboklab(48.75% -0.0942 0.0718)
OKLCHoklch(48.75% 0.118 142.7)
XYZxyz(7.5536, 12.4379, 4.5870)
Luminance0.1244 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31702E #6D2E70
analogous
#52702E #31702E #2E704C
triadic
#31702E #2E3170 #702E31
tetradic
#31702E #2E5270 #6D2E70 #704C2E
square
#31702E #2E5270 #6D2E70 #704C2E
split-complementary
#31702E #4C2E70 #702E52
monochromatic
#0B190A #1E451C #31702E #449B40 #61BC5C

Accessibility & contrast

On white

6.02
#31702E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#31702E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31702E
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31702E#FFFFFF#000000##FFFFFF
##31702E1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726628
Deuteranopia (green-blind)
#6A6133
Tritanopia (blue-blind)
#286D61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #31702e;
/* rgb */ color: rgb(49, 112, 46);
/* oklch */ color: oklch(48.8% 0.118 142.7);
Tailwind
colors: {
  custom: {
    50: '#6f9a69',
    500: '#31702e',
    950: '#000000',
  },
}
SCSS
$custom: #31702e;
$custom-light: #6f9a69;
$custom-dark: #000000;
JSON
{
  "hex": "#31702e",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 46
  },
  "hsl": {
    "h": 117.273,
    "s": 41.772,
    "l": 30.98
  },
  "oklch": {
    "l": 0.48751,
    "c": 0.11847,
    "h": 142.7
  },
  "luminance": 0.12439
}

Semantic roles & 50–950 ramp

primary
#31702E
secondary
#9E58A1
accent
#56D2CC
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #31702E

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

Preview Lab → · Contrast checker → · Palette generator →

#31702E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva