#42981F#42981F

#42981F is a mid, vivid green. Relative luminance 0.237; OKLCH L 60.3% C 0.173 H 138.7°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#42981F
RGBrgb(66, 152, 31)
HSLhsl(103, 66%, 36%)
HSVhsv(103, 80%, 60%)
CMYKcmyk(56.6%, 0%, 79.6%, 40.4%)
CIE-LABlab(55.80, -47.18, 51.46)
CIE-LCHlch(55.80, 69.82, 132.51°)
OKLaboklab(60.34% -0.1302 0.1145)
OKLCHoklch(60.34% 0.173 138.7)
XYZxyz(13.7218, 23.7125, 5.1499)
Luminance0.2371 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42981F #751F98
analogous
#7E981F #42981F #1F9839
triadic
#42981F #1F4298 #981F42
tetradic
#42981F #1F7E98 #751F98 #98391F
square
#42981F #1F7E98 #751F98 #98391F
split-complementary
#42981F #391F98 #981F7E
monochromatic
#16320A #2C6515 #42981F #58CB29 #7CDC55

Accessibility & contrast

On white

3.66
#42981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#42981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42981F
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42981F#FFFFFF#000000##000000
##42981F1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#92832D
Tritanopia (blue-blind)
#3A9382
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #42981f;
/* rgb */ color: rgb(66, 152, 31);
/* oklch */ color: oklch(60.3% 0.173 138.7);
Tailwind
colors: {
  custom: {
    50: '#80b765',
    500: '#42981f',
    950: '#000000',
  },
}
SCSS
$custom: #42981f;
$custom-light: #80b765;
$custom-dark: #000000;
JSON
{
  "hex": "#42981f",
  "rgb": {
    "r": 66,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 102.645,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60336,
    "c": 0.17343,
    "h": 138.7
  },
  "luminance": 0.23714
}

Semantic roles & 50–950 ramp

primary
#42981F
secondary
#A053C0
accent
#3FE9B8
background
#F8FBF6
surface
#EFF6EB
border
#CAD0C6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #42981F

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

Preview Lab → · Contrast checker → · Palette generator →

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