#42881F#42881F

#42881F is a mid, vivid green. Relative luminance 0.189; OKLCH L 56.0% C 0.154 H 137.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#42881F
RGBrgb(66, 136, 31)
HSLhsl(100, 63%, 33%)
HSVhsv(100, 77%, 53%)
CMYKcmyk(51.5%, 0%, 77.2%, 46.7%)
CIE-LABlab(50.53, -40.92, 46.38)
CIE-LCHlch(50.53, 61.85, 131.42°)
OKLaboklab(55.99% -0.1134 0.1039)
OKLCHoklch(55.99% 0.154 137.5)
XYZxyz(11.2979, 18.8647, 4.3420)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42881F #651F88
analogous
#76881F #42881F #1F8830
triadic
#42881F #1F4288 #881F42
tetradic
#42881F #1F7688 #651F88 #88301F
square
#42881F #1F7688 #651F88 #88301F
split-complementary
#42881F #301F88 #881F76
monochromatic
#122408 #2A5614 #42881F #5ABA2A #7AD64B

Accessibility & contrast

On white

4.40
#42881F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#42881F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42881F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42881F#FFFFFF#000000##000000
##42881F1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C08
Deuteranopia (green-blind)
#83762A
Tritanopia (blue-blind)
#3D8374
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #42881f;
/* rgb */ color: rgb(66, 136, 31);
/* oklch */ color: oklch(56.0% 0.154 137.5);
Tailwind
colors: {
  custom: {
    50: '#7eab63',
    500: '#42881f',
    950: '#000000',
  },
}
SCSS
$custom: #42881f;
$custom-light: #7eab63;
$custom-dark: #000000;
JSON
{
  "hex": "#42881f",
  "rgb": {
    "r": 66,
    "g": 136,
    "b": 31
  },
  "hsl": {
    "h": 100,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.55992,
    "c": 0.1538,
    "h": 137.5
  },
  "luminance": 0.18865
}

Semantic roles & 50–950 ramp

primary
#42881F
secondary
#944AB9
accent
#42E6AF
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #42881F

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

Preview Lab → · Contrast checker → · Palette generator →

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