#42841A#42841A

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

Color values

HEX#42841A
RGBrgb(66, 132, 26)
HSLhsl(97, 67%, 31%)
HSVhsv(97, 80%, 52%)
CMYKcmyk(50%, 0%, 80.3%, 48.2%)
CIE-LABlab(49.17, -39.61, 46.80)
CIE-LCHlch(49.17, 61.31, 130.25°)
OKLaboklab(54.87% -0.1102 0.104)
OKLCHoklch(54.87% 0.152 136.6)
XYZxyz(10.6842, 17.7346, 3.8372)
Luminance0.1774 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42841A #5C1A84
analogous
#77841A #42841A #1A8427
triadic
#42841A #1A4284 #841A42
tetradic
#42841A #1A7784 #5C1A84 #84271A
square
#42841A #1A7784 #5C1A84 #84271A
split-complementary
#42841A #271A84 #841A77
monochromatic
#0F1E06 #285110 #42841A #5CB724 #79D93F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42841A#FFFFFF#000000##FFFFFF
##42841A1.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)
#897800
Deuteranopia (green-blind)
#807326
Tritanopia (blue-blind)
#3E7F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #42841a;
/* rgb */ color: rgb(66, 132, 26);
/* oklch */ color: oklch(54.9% 0.152 136.6);
Tailwind
colors: {
  custom: {
    50: '#7da860',
    500: '#42841a',
    950: '#000000',
  },
}
SCSS
$custom: #42841a;
$custom-light: #7da860;
$custom-dark: #000000;
JSON
{
  "hex": "#42841a",
  "rgb": {
    "r": 66,
    "g": 132,
    "b": 26
  },
  "hsl": {
    "h": 97.358,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54867,
    "c": 0.15153,
    "h": 136.6
  },
  "luminance": 0.17735
}

Semantic roles & 50–950 ramp

primary
#42841A
secondary
#8B42B8
accent
#3EEAA9
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #42841A

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

Preview Lab → · Contrast checker → · Palette generator →

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