#42842F#42842F

#42842F is a mid, vivid green. Relative luminance 0.179; OKLCH L 55.0% C 0.137 H 139.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#42842F
RGBrgb(66, 132, 47)
HSLhsl(107, 47%, 35%)
HSVhsv(107, 64%, 52%)
CMYKcmyk(50%, 0%, 64.4%, 48.2%)
CIE-LABlab(49.33, -37.86, 38.46)
CIE-LCHlch(49.33, 53.97, 134.56°)
OKLaboklab(55.05% -0.104 0.0894)
OKLCHoklch(55.05% 0.137 139.3)
XYZxyz(11.0107, 17.8652, 5.5569)
Luminance0.1787 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42842F #712F84
analogous
#6D842F #42842F #2F8446
triadic
#42842F #2F4284 #842F42
tetradic
#42842F #2F6D84 #712F84 #84462F
square
#42842F #2F6D84 #712F84 #84462F
split-complementary
#42842F #462F84 #842F6D
monochromatic
#152A0F #2B571F #42842F #59B13F #7BC865

Accessibility & contrast

On white

4.59
#42842F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#42842F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #42842F
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42842F#FFFFFF#000000##FFFFFF
##42842F1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887925
Deuteranopia (green-blind)
#7F7336
Tritanopia (blue-blind)
#3C8072
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #42842f;
/* rgb */ color: rgb(66, 132, 47);
/* oklch */ color: oklch(55.0% 0.137 139.3);
Tailwind
colors: {
  custom: {
    50: '#7ca86b',
    500: '#42842f',
    950: '#000000',
  },
}
SCSS
$custom: #42842f;
$custom-light: #7ca86b;
$custom-dark: #000000;
JSON
{
  "hex": "#42842f",
  "rgb": {
    "r": 66,
    "g": 132,
    "b": 47
  },
  "hsl": {
    "h": 106.588,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.5505,
    "c": 0.13716,
    "h": 139.3
  },
  "luminance": 0.17866
}

Semantic roles & 50–950 ramp

primary
#42842F
secondary
#9D60AF
accent
#51D7B9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #42842F

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

Preview Lab → · Contrast checker → · Palette generator →

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