#42931F#42931F

#42931F is a mid, vivid green. Relative luminance 0.221; OKLCH L 59.0% C 0.167 H 138.3°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#42931F
RGBrgb(66, 147, 31)
HSLhsl(102, 65%, 35%)
HSVhsv(102, 79%, 58%)
CMYKcmyk(55.1%, 0%, 78.9%, 42.4%)
CIE-LABlab(54.16, -45.27, 49.89)
CIE-LCHlch(54.16, 67.37, 132.22°)
OKLaboklab(58.98% -0.1251 0.1113)
OKLCHoklch(58.98% 0.167 138.3)
XYZxyz(12.9273, 22.1236, 4.8851)
Luminance0.2213 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42931F #701F93
analogous
#7C931F #42931F #1F9336
triadic
#42931F #1F4293 #931F42
tetradic
#42931F #1F7C93 #701F93 #93361F
square
#42931F #1F7C93 #701F93 #93361F
split-complementary
#42931F #361F93 #931F7C
monochromatic
#152E0A #2B6014 #42931F #59C62A #7BDA52

Accessibility & contrast

On white

3.87
#42931F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#42931F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42931F
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42931F#FFFFFF#000000##000000
##42931F1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#988601
Deuteranopia (green-blind)
#8D7F2C
Tritanopia (blue-blind)
#3B8E7D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #42931f;
/* rgb */ color: rgb(66, 147, 31);
/* oklch */ color: oklch(59.0% 0.167 138.3);
Tailwind
colors: {
  custom: {
    50: '#7fb364',
    500: '#42931f',
    950: '#000000',
  },
}
SCSS
$custom: #42931f;
$custom-light: #7fb364;
$custom-dark: #000000;
JSON
{
  "hex": "#42931f",
  "rgb": {
    "r": 66,
    "g": 147,
    "b": 31
  },
  "hsl": {
    "h": 101.897,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58982,
    "c": 0.16742,
    "h": 138.3
  },
  "luminance": 0.22125
}

Semantic roles & 50–950 ramp

primary
#42931F
secondary
#9D50BE
accent
#40E8B5
background
#F8FBF6
surface
#EFF6EB
border
#CAD0C6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #42931F

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

Preview Lab → · Contrast checker → · Palette generator →

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