#42821D#42821D

#42821D is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.3% C 0.147 H 136.7°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#42821D
RGBrgb(66, 130, 29)
HSLhsl(98, 64%, 31%)
HSVhsv(98, 78%, 51%)
CMYKcmyk(49.2%, 0%, 77.7%, 49%)
CIE-LABlab(48.53, -38.59, 45.13)
CIE-LCHlch(48.53, 59.38, 130.53°)
OKLaboklab(54.34% -0.1072 0.101)
OKLCHoklch(54.34% 0.147 136.7)
XYZxyz(10.4509, 17.2115, 3.9336)
Luminance0.1721 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42821D #5D1D82
analogous
#74821D #42821D #1D822A
triadic
#42821D #1D4282 #821D42
tetradic
#42821D #1D7482 #5D1D82 #822A1D
square
#42821D #1D7482 #5D1D82 #822A1D
split-complementary
#42821D #2A1D82 #821D74
monochromatic
#0F1E07 #295012 #42821D #5BB428 #79D544

Accessibility & contrast

On white

4.73
#42821D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#42821D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42821D
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42821D#FFFFFF#000000##FFFFFF
##42821D1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877707
Deuteranopia (green-blind)
#7E7128
Tritanopia (blue-blind)
#3F7D6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #42821d;
/* rgb */ color: rgb(66, 130, 29);
/* oklch */ color: oklch(54.3% 0.147 136.7);
Tailwind
colors: {
  custom: {
    50: '#7da761',
    500: '#42821d',
    950: '#000000',
  },
}
SCSS
$custom: #42821d;
$custom-light: #7da761;
$custom-dark: #000000;
JSON
{
  "hex": "#42821d",
  "rgb": {
    "r": 66,
    "g": 130,
    "b": 29
  },
  "hsl": {
    "h": 98.02,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54341,
    "c": 0.14732,
    "h": 136.7
  },
  "luminance": 0.17212
}

Semantic roles & 50–950 ramp

primary
#42821D
secondary
#8C46B5
accent
#41E7AA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #42821D

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

Preview Lab → · Contrast checker → · Palette generator →

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