#42821E#42821E

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

Color values

HEX#42821E
RGBrgb(66, 130, 30)
HSLhsl(98, 63%, 31%)
HSVhsv(98, 77%, 51%)
CMYKcmyk(49.2%, 0%, 76.9%, 49%)
CIE-LABlab(48.53, -38.52, 44.78)
CIE-LCHlch(48.53, 59.07, 130.70°)
OKLaboklab(54.35% -0.107 0.1004)
OKLCHoklch(54.35% 0.147 136.8)
XYZxyz(10.4634, 17.2165, 3.9998)
Luminance0.1722 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42821E #5E1E82
analogous
#74821E #42821E #1E822C
triadic
#42821E #1E4282 #821E42
tetradic
#42821E #1E7482 #5E1E82 #822C1E
square
#42821E #1E7482 #5E1E82 #822C1E
split-complementary
#42821E #2C1E82 #821E74
monochromatic
#101F07 #295013 #42821E #5BB429 #79D446

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42821E#FFFFFF#000000##FFFFFF
##42821E1.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)
#877709
Deuteranopia (green-blind)
#7E7128
Tritanopia (blue-blind)
#3F7D6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #42821e;
/* rgb */ color: rgb(66, 130, 30);
/* oklch */ color: oklch(54.3% 0.147 136.8);
Tailwind
colors: {
  custom: {
    50: '#7da761',
    500: '#42821e',
    950: '#000000',
  },
}
SCSS
$custom: #42821e;
$custom-light: #7da761;
$custom-dark: #000000;
JSON
{
  "hex": "#42821e",
  "rgb": {
    "r": 66,
    "g": 130,
    "b": 30
  },
  "hsl": {
    "h": 98.4,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54348,
    "c": 0.14673,
    "h": 136.8
  },
  "luminance": 0.17217
}

Semantic roles & 50–950 ramp

primary
#42821E
secondary
#8D47B5
accent
#42E6AB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #42821E

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

Preview Lab → · Contrast checker → · Palette generator →

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