#42821B#42821B

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

Color values

HEX#42821B
RGBrgb(66, 130, 27)
HSLhsl(97, 66%, 31%)
HSVhsv(97, 79%, 51%)
CMYKcmyk(49.2%, 0%, 79.2%, 49%)
CIE-LABlab(48.51, -38.72, 45.83)
CIE-LCHlch(48.51, 60.00, 130.19°)
OKLaboklab(54.33% -0.1077 0.1022)
OKLCHoklch(54.33% 0.148 136.5)
XYZxyz(10.4269, 17.2019, 3.8076)
Luminance0.1720 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42821B #5B1B82
analogous
#75821B #42821B #1B8228
triadic
#42821B #1B4282 #821B42
tetradic
#42821B #1B7582 #5B1B82 #82281B
square
#42821B #1B7582 #5B1B82 #82281B
split-complementary
#42821B #281B82 #821B75
monochromatic
#0F1D06 #284F10 #42821B #5CB526 #79D740

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #42821b;
/* rgb */ color: rgb(66, 130, 27);
/* oklch */ color: oklch(54.3% 0.148 136.5);
Tailwind
colors: {
  custom: {
    50: '#7da760',
    500: '#42821b',
    950: '#000000',
  },
}
SCSS
$custom: #42821b;
$custom-light: #7da760;
$custom-dark: #000000;
JSON
{
  "hex": "#42821b",
  "rgb": {
    "r": 66,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 97.282,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54327,
    "c": 0.14846,
    "h": 136.5
  },
  "luminance": 0.17203
}

Semantic roles & 50–950 ramp

primary
#42821B
secondary
#8A43B6
accent
#3FE9A8
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #42821B

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

Preview Lab → · Contrast checker → · Palette generator →

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