#42801C#42801C

#42801C is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 53.8% C 0.145 H 136.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#42801C
RGBrgb(66, 128, 28)
HSLhsl(97, 64%, 31%)
HSVhsv(97, 78%, 50%)
CMYKcmyk(48.4%, 0%, 78.1%, 49.8%)
CIE-LABlab(47.85, -37.82, 44.84)
CIE-LCHlch(47.85, 58.66, 130.15°)
OKLaboklab(53.79% -0.1052 0.1003)
OKLCHoklch(53.79% 0.145 136.4)
XYZxyz(10.1753, 16.6798, 3.7817)
Luminance0.1668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42801C #5A1C80
analogous
#74801C #42801C #1C8028
triadic
#42801C #1C4280 #801C42
tetradic
#42801C #1C7480 #5A1C80 #80281C
square
#42801C #1C7480 #5A1C80 #80281C
split-complementary
#42801C #281C80 #801C74
monochromatic
#0E1C06 #284E11 #42801C #5CB227 #79D541

Accessibility & contrast

On white

4.84
#42801C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#42801C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42801C
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42801C#FFFFFF#000000##FFFFFF
##42801C1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857505
Deuteranopia (green-blind)
#7C7027
Tritanopia (blue-blind)
#3F7B6D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #42801c;
/* rgb */ color: rgb(66, 128, 28);
/* oklch */ color: oklch(53.8% 0.145 136.4);
Tailwind
colors: {
  custom: {
    50: '#7da560',
    500: '#42801c',
    950: '#000000',
  },
}
SCSS
$custom: #42801c;
$custom-light: #7da560;
$custom-dark: #000000;
JSON
{
  "hex": "#42801c",
  "rgb": {
    "r": 66,
    "g": 128,
    "b": 28
  },
  "hsl": {
    "h": 97.2,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53787,
    "c": 0.14534,
    "h": 136.4
  },
  "luminance": 0.1668
}

Semantic roles & 50–950 ramp

primary
#42801C
secondary
#8944B3
accent
#41E7A8
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #42801C

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

Preview Lab → · Contrast checker → · Palette generator →

#42801C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva