#42841D#42841D

#42841D is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 54.9% C 0.150 H 136.9°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#42841D
RGBrgb(66, 132, 29)
HSLhsl(98, 64%, 32%)
HSVhsv(98, 78%, 52%)
CMYKcmyk(50%, 0%, 78%, 48.2%)
CIE-LABlab(49.19, -39.42, 45.78)
CIE-LCHlch(49.19, 60.41, 130.73°)
OKLaboklab(54.89% -0.1095 0.1024)
OKLCHoklch(54.89% 0.15 136.9)
XYZxyz(10.7195, 17.7488, 4.0232)
Luminance0.1775 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42841D #5F1D84
analogous
#76841D #42841D #1D842C
triadic
#42841D #1D4284 #841D42
tetradic
#42841D #1D7684 #5F1D84 #842C1D
square
#42841D #1D7684 #5F1D84 #842C1D
split-complementary
#42841D #2C1D84 #841D76
monochromatic
#102007 #295212 #42841D #5BB628 #79D645

Accessibility & contrast

On white

4.62
#42841D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #42841D
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42841D#FFFFFF#000000##FFFFFF
##42841D1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897805
Deuteranopia (green-blind)
#807328
Tritanopia (blue-blind)
#3E7F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #42841d;
/* rgb */ color: rgb(66, 132, 29);
/* oklch */ color: oklch(54.9% 0.150 136.9);
Tailwind
colors: {
  custom: {
    50: '#7da861',
    500: '#42841d',
    950: '#000000',
  },
}
SCSS
$custom: #42841d;
$custom-light: #7da861;
$custom-dark: #000000;
JSON
{
  "hex": "#42841d",
  "rgb": {
    "r": 66,
    "g": 132,
    "b": 29
  },
  "hsl": {
    "h": 98.447,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54887,
    "c": 0.14988,
    "h": 136.9
  },
  "luminance": 0.17749
}

Semantic roles & 50–950 ramp

primary
#42841D
secondary
#8E46B7
accent
#41E7AB
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #42841D

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

Preview Lab → · Contrast checker → · Palette generator →

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