#42971F#42971F

#42971F is a mid, vivid green. Relative luminance 0.234; OKLCH L 60.1% C 0.172 H 138.6°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#42971F
RGBrgb(66, 151, 31)
HSLhsl(103, 66%, 36%)
HSVhsv(103, 79%, 59%)
CMYKcmyk(56.3%, 0%, 79.5%, 40.8%)
CIE-LABlab(55.47, -46.80, 51.15)
CIE-LCHlch(55.47, 69.33, 132.46°)
OKLaboklab(60.07% -0.1292 0.1139)
OKLCHoklch(60.07% 0.172 138.6)
XYZxyz(13.5602, 23.3893, 5.0961)
Luminance0.2339 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42971F #741F97
analogous
#7E971F #42971F #1F9738
triadic
#42971F #1F4297 #971F42
tetradic
#42971F #1F7E97 #741F97 #97381F
square
#42971F #1F7E97 #741F97 #97381F
split-complementary
#42971F #381F97 #971F7E
monochromatic
#16310A #2C6415 #42971F #58CA29 #7CDC54

Accessibility & contrast

On white

3.70
#42971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#42971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42971F
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42971F#FFFFFF#000000##000000
##42971F1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8900
Deuteranopia (green-blind)
#91822D
Tritanopia (blue-blind)
#3A9281
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #42971f;
/* rgb */ color: rgb(66, 151, 31);
/* oklch */ color: oklch(60.1% 0.172 138.6);
Tailwind
colors: {
  custom: {
    50: '#80b665',
    500: '#42971f',
    950: '#000000',
  },
}
SCSS
$custom: #42971f;
$custom-light: #80b665;
$custom-dark: #000000;
JSON
{
  "hex": "#42971f",
  "rgb": {
    "r": 66,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 102.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.60065,
    "c": 0.17224,
    "h": 138.6
  },
  "luminance": 0.2339
}

Semantic roles & 50–950 ramp

primary
#42971F
secondary
#A052BF
accent
#3FE9B7
background
#F8FBF6
surface
#EFF6EB
border
#CAD0C6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #42971F

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

Preview Lab → · Contrast checker → · Palette generator →

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