#42801F#42801F

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

Color values

HEX#42801F
RGBrgb(66, 128, 31)
HSLhsl(98, 61%, 31%)
HSVhsv(98, 76%, 50%)
CMYKcmyk(48.4%, 0%, 75.8%, 49.8%)
CIE-LABlab(47.87, -37.61, 43.75)
CIE-LCHlch(47.87, 57.69, 130.68°)
OKLaboklab(53.81% -0.1044 0.0984)
OKLCHoklch(53.81% 0.144 136.7)
XYZxyz(10.2130, 16.6949, 3.9803)
Luminance0.1670 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42801F #5D1F80
analogous
#72801F #42801F #1F802D
triadic
#42801F #1F4280 #801F42
tetradic
#42801F #1F7280 #5D1F80 #802D1F
square
#42801F #1F7280 #5D1F80 #802D1F
split-complementary
#42801F #2D1F80 #801F72
monochromatic
#0F1D07 #294F13 #42801F #5BB12B #79D247

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42801F#FFFFFF#000000##FFFFFF
##42801F1.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)
#85750C
Deuteranopia (green-blind)
#7C7029
Tritanopia (blue-blind)
#3F7B6D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #42801f;
/* rgb */ color: rgb(66, 128, 31);
/* oklch */ color: oklch(53.8% 0.144 136.7);
Tailwind
colors: {
  custom: {
    50: '#7da562',
    500: '#42801f',
    950: '#000000',
  },
}
SCSS
$custom: #42801f;
$custom-light: #7da562;
$custom-dark: #000000;
JSON
{
  "hex": "#42801f",
  "rgb": {
    "r": 66,
    "g": 128,
    "b": 31
  },
  "hsl": {
    "h": 98.351,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53809,
    "c": 0.14352,
    "h": 136.7
  },
  "luminance": 0.16696
}

Semantic roles & 50–950 ramp

primary
#42801F
secondary
#8C48B3
accent
#44E4AA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #42801F

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

Preview Lab → · Contrast checker → · Palette generator →

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