#42842A#42842A

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

Color values

HEX#42842A
RGBrgb(66, 132, 42)
HSLhsl(104, 52%, 34%)
HSVhsv(104, 68%, 52%)
CMYKcmyk(50%, 0%, 68.2%, 48.2%)
CIE-LABlab(49.29, -38.37, 40.68)
CIE-LCHlch(49.29, 55.92, 133.33°)
OKLaboklab(55% -0.1057 0.0935)
OKLCHoklch(55% 0.141 138.5)
XYZxyz(10.9156, 17.8272, 5.0558)
Luminance0.1783 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42842A #6C2A84
analogous
#6F842A #42842A #2A843F
triadic
#42842A #2A4284 #842A42
tetradic
#42842A #2A6F84 #6C2A84 #843F2A
square
#42842A #2A6F84 #6C2A84 #843F2A
split-complementary
#42842A #3F2A84 #842A6F
monochromatic
#14270C #2B561B #42842A #59B239 #7ACB5D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42842A#FFFFFF#000000##FFFFFF
##42842A1.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)
#88791E
Deuteranopia (green-blind)
#7F7332
Tritanopia (blue-blind)
#3D7F72
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #42842a;
/* rgb */ color: rgb(66, 132, 42);
/* oklch */ color: oklch(55.0% 0.141 138.5);
Tailwind
colors: {
  custom: {
    50: '#7da868',
    500: '#42842a',
    950: '#000000',
  },
}
SCSS
$custom: #42842a;
$custom-light: #7da868;
$custom-dark: #000000;
JSON
{
  "hex": "#42842a",
  "rgb": {
    "r": 66,
    "g": 132,
    "b": 42
  },
  "hsl": {
    "h": 104,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.54996,
    "c": 0.14115,
    "h": 138.5
  },
  "luminance": 0.17828
}

Semantic roles & 50–950 ramp

primary
#42842A
secondary
#9A59B1
accent
#4DDBB5
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #42842A

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

Preview Lab → · Contrast checker → · Palette generator →

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