#42821C#42821C

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

Color values

HEX#42821C
RGBrgb(66, 130, 28)
HSLhsl(98, 65%, 31%)
HSVhsv(98, 78%, 51%)
CMYKcmyk(49.2%, 0%, 78.5%, 49%)
CIE-LABlab(48.52, -38.66, 45.49)
CIE-LCHlch(48.52, 59.69, 130.36°)
OKLaboklab(54.33% -0.1075 0.1016)
OKLCHoklch(54.33% 0.148 136.6)
XYZxyz(10.4387, 17.2067, 3.8695)
Luminance0.1721 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42821C #5C1C82
analogous
#75821C #42821C #1C8229
triadic
#42821C #1C4282 #821C42
tetradic
#42821C #1C7582 #5C1C82 #82291C
square
#42821C #1C7582 #5C1C82 #82291C
split-complementary
#42821C #291C82 #821C75
monochromatic
#0F1D06 #285011 #42821C #5CB427 #79D642

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42821C#FFFFFF#000000##FFFFFF
##42821C1.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)
#877704
Deuteranopia (green-blind)
#7E7127
Tritanopia (blue-blind)
#3F7D6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #42821c;
/* rgb */ color: rgb(66, 130, 28);
/* oklch */ color: oklch(54.3% 0.148 136.6);
Tailwind
colors: {
  custom: {
    50: '#7da760',
    500: '#42821c',
    950: '#000000',
  },
}
SCSS
$custom: #42821c;
$custom-light: #7da760;
$custom-dark: #000000;
JSON
{
  "hex": "#42821c",
  "rgb": {
    "r": 66,
    "g": 130,
    "b": 28
  },
  "hsl": {
    "h": 97.647,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54334,
    "c": 0.1479,
    "h": 136.6
  },
  "luminance": 0.17207
}

Semantic roles & 50–950 ramp

primary
#42821C
secondary
#8B44B5
accent
#40E8A9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #42821C

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

Preview Lab → · Contrast checker → · Palette generator →

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