#42842B#42842B

#42842B is a mid, vivid green. Relative luminance 0.178; OKLCH L 55.0% C 0.140 H 138.7°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#42842B
RGBrgb(66, 132, 43)
HSLhsl(104, 51%, 34%)
HSVhsv(104, 67%, 52%)
CMYKcmyk(50%, 0%, 67.4%, 48.2%)
CIE-LABlab(49.29, -38.27, 40.24)
CIE-LCHlch(49.29, 55.53, 133.56°)
OKLaboklab(55.01% -0.1054 0.0927)
OKLCHoklch(55.01% 0.14 138.7)
XYZxyz(10.9337, 17.8344, 5.1513)
Luminance0.1784 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42842B #6D2B84
analogous
#6F842B #42842B #2B8441
triadic
#42842B #2B4284 #842B42
tetradic
#42842B #2B6F84 #6D2B84 #84412B
square
#42842B #2B6F84 #6D2B84 #84412B
split-complementary
#42842B #412B84 #842B6F
monochromatic
#14280D #2B561C #42842B #59B23A #7BCB5F

Accessibility & contrast

On white

4.60
#42842B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #42842B
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42842B#FFFFFF#000000##FFFFFF
##42842B1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887920
Deuteranopia (green-blind)
#7F7333
Tritanopia (blue-blind)
#3D8072
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #42842b;
/* rgb */ color: rgb(66, 132, 43);
/* oklch */ color: oklch(55.0% 0.140 138.7);
Tailwind
colors: {
  custom: {
    50: '#7da869',
    500: '#42842b',
    950: '#000000',
  },
}
SCSS
$custom: #42842b;
$custom-light: #7da869;
$custom-dark: #000000;
JSON
{
  "hex": "#42842b",
  "rgb": {
    "r": 66,
    "g": 132,
    "b": 43
  },
  "hsl": {
    "h": 104.494,
    "s": 50.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.55007,
    "c": 0.14038,
    "h": 138.7
  },
  "luminance": 0.17835
}

Semantic roles & 50–950 ramp

primary
#42842B
secondary
#9A5AB1
accent
#4DDAB6
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #42842B

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

Preview Lab → · Contrast checker → · Palette generator →

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