#42821A#42821A

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

Color values

HEX#42821A
RGBrgb(66, 130, 26)
HSLhsl(97, 67%, 31%)
HSVhsv(97, 80%, 51%)
CMYKcmyk(49.2%, 0%, 80%, 49%)
CIE-LABlab(48.51, -38.78, 46.16)
CIE-LCHlch(48.51, 60.29, 130.03°)
OKLaboklab(54.32% -0.1079 0.1027)
OKLCHoklch(54.32% 0.149 136.4)
XYZxyz(10.4156, 17.1974, 3.7477)
Luminance0.1720 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42821A #5A1A82
analogous
#76821A #42821A #1A8226
triadic
#42821A #1A4282 #821A42
tetradic
#42821A #1A7682 #5A1A82 #82261A
square
#42821A #1A7682 #5A1A82 #82261A
split-complementary
#42821A #261A82 #821A76
monochromatic
#0E1C06 #284F10 #42821A #5CB524 #79D83E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42821A#FFFFFF#000000##FFFFFF
##42821A1.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)
#877600
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#3F7D6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #42821a;
/* rgb */ color: rgb(66, 130, 26);
/* oklch */ color: oklch(54.3% 0.149 136.4);
Tailwind
colors: {
  custom: {
    50: '#7da760',
    500: '#42821a',
    950: '#000000',
  },
}
SCSS
$custom: #42821a;
$custom-light: #7da760;
$custom-dark: #000000;
JSON
{
  "hex": "#42821a",
  "rgb": {
    "r": 66,
    "g": 130,
    "b": 26
  },
  "hsl": {
    "h": 96.923,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54321,
    "c": 0.14901,
    "h": 136.4
  },
  "luminance": 0.17198
}

Semantic roles & 50–950 ramp

primary
#42821A
secondary
#8942B6
accent
#3EEAA8
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #42821A

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

Preview Lab → · Contrast checker → · Palette generator →

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