#42821F#42821F

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

Color values

HEX#42821F
RGBrgb(66, 130, 31)
HSLhsl(99, 61%, 32%)
HSVhsv(99, 76%, 51%)
CMYKcmyk(49.2%, 0%, 76.2%, 49%)
CIE-LABlab(48.54, -38.45, 44.41)
CIE-LCHlch(48.54, 58.74, 130.88°)
OKLaboklab(54.36% -0.1067 0.0998)
OKLCHoklch(54.36% 0.146 136.9)
XYZxyz(10.4764, 17.2217, 4.0681)
Luminance0.1722 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42821F #5F1F82
analogous
#74821F #42821F #1F822E
triadic
#42821F #1F4282 #821F42
tetradic
#42821F #1F7482 #5F1F82 #822E1F
square
#42821F #1F7482 #5F1F82 #822E1F
split-complementary
#42821F #2E1F82 #821F74
monochromatic
#101F07 #295113 #42821F #5BB32B #79D348

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42821F#FFFFFF#000000##FFFFFF
##42821F1.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)
#87770B
Deuteranopia (green-blind)
#7E7129
Tritanopia (blue-blind)
#3E7D6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #42821f;
/* rgb */ color: rgb(66, 130, 31);
/* oklch */ color: oklch(54.4% 0.146 136.9);
Tailwind
colors: {
  custom: {
    50: '#7da762',
    500: '#42821f',
    950: '#000000',
  },
}
SCSS
$custom: #42821f;
$custom-light: #7da762;
$custom-dark: #000000;
JSON
{
  "hex": "#42821f",
  "rgb": {
    "r": 66,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 98.788,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54355,
    "c": 0.14612,
    "h": 136.9
  },
  "luminance": 0.17222
}

Semantic roles & 50–950 ramp

primary
#42821F
secondary
#8E48B5
accent
#43E5AC
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #42821F

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

Preview Lab → · Contrast checker → · Palette generator →

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