#42841E#42841E

#42841E is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 54.9% C 0.149 H 137.0°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#42841E
RGBrgb(66, 132, 30)
HSLhsl(99, 63%, 32%)
HSVhsv(99, 77%, 52%)
CMYKcmyk(50%, 0%, 77.3%, 48.2%)
CIE-LABlab(49.20, -39.35, 45.43)
CIE-LCHlch(49.20, 60.10, 130.90°)
OKLaboklab(54.89% -0.1092 0.1018)
OKLCHoklch(54.89% 0.149 137)
XYZxyz(10.7320, 17.7538, 4.0894)
Luminance0.1776 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42841E #601E84
analogous
#75841E #42841E #1E842D
triadic
#42841E #1E4284 #841E42
tetradic
#42841E #1E7584 #601E84 #842D1E
square
#42841E #1E7584 #601E84 #842D1E
split-complementary
#42841E #2D1E84 #841E75
monochromatic
#102007 #295213 #42841E #5BB629 #79D547

Accessibility & contrast

On white

4.61
#42841E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#42841E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #42841E
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42841E#FFFFFF#000000##FFFFFF
##42841E1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897808
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#3E7F71
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #42841e;
/* rgb */ color: rgb(66, 132, 30);
/* oklch */ color: oklch(54.9% 0.149 137.0);
Tailwind
colors: {
  custom: {
    50: '#7da862',
    500: '#42841e',
    950: '#000000',
  },
}
SCSS
$custom: #42841e;
$custom-light: #7da862;
$custom-dark: #000000;
JSON
{
  "hex": "#42841e",
  "rgb": {
    "r": 66,
    "g": 132,
    "b": 30
  },
  "hsl": {
    "h": 98.824,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54894,
    "c": 0.1493,
    "h": 137
  },
  "luminance": 0.17755
}

Semantic roles & 50–950 ramp

primary
#42841E
secondary
#8F47B7
accent
#42E6AC
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #42841E

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

Preview Lab → · Contrast checker → · Palette generator →

#42841E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva