#42841B#42841B

#42841B is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 54.9% C 0.151 H 136.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#42841B
RGBrgb(66, 132, 27)
HSLhsl(98, 66%, 31%)
HSVhsv(98, 80%, 52%)
CMYKcmyk(50%, 0%, 79.5%, 48.2%)
CIE-LABlab(49.18, -39.55, 46.47)
CIE-LCHlch(49.18, 61.02, 130.40°)
OKLaboklab(54.87% -0.1099 0.1035)
OKLCHoklch(54.87% 0.151 136.7)
XYZxyz(10.6955, 17.7392, 3.8971)
Luminance0.1774 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42841B #5D1B84
analogous
#76841B #42841B #1B8428
triadic
#42841B #1B4284 #841B42
tetradic
#42841B #1B7684 #5D1B84 #84281B
square
#42841B #1B7684 #5D1B84 #84281B
split-complementary
#42841B #281B84 #841B76
monochromatic
#0F1E06 #295111 #42841B #5BB725 #79D841

Accessibility & contrast

On white

4.62
#42841B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#42841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #42841B
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42841B#FFFFFF#000000##FFFFFF
##42841B1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897801
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#3E7F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #42841b;
/* rgb */ color: rgb(66, 132, 27);
/* oklch */ color: oklch(54.9% 0.151 136.7);
Tailwind
colors: {
  custom: {
    50: '#7da860',
    500: '#42841b',
    950: '#000000',
  },
}
SCSS
$custom: #42841b;
$custom-light: #7da860;
$custom-dark: #000000;
JSON
{
  "hex": "#42841b",
  "rgb": {
    "r": 66,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 97.714,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54874,
    "c": 0.15099,
    "h": 136.7
  },
  "luminance": 0.1774
}

Semantic roles & 50–950 ramp

primary
#42841B
secondary
#8C43B7
accent
#3FE9AA
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #42841B

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

Preview Lab → · Contrast checker → · Palette generator →

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