#42781D#42781D

#42781D is a mid, vivid yellow-green. Relative luminance 0.147; OKLCH L 51.6% C 0.134 H 135.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#42781D
RGBrgb(66, 120, 29)
HSLhsl(96, 61%, 29%)
HSVhsv(96, 76%, 47%)
CMYKcmyk(45%, 0%, 75.8%, 52.9%)
CIE-LABlab(45.19, -34.31, 41.84)
CIE-LCHlch(45.19, 54.11, 129.35°)
OKLaboklab(51.6% -0.0957 0.0941)
OKLCHoklch(51.6% 0.134 135.5)
XYZxyz(9.1848, 14.6794, 3.5116)
Luminance0.1468 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42781D #531D78
analogous
#70781D #42781D #1D7825
triadic
#42781D #1D4278 #781D42
tetradic
#42781D #1D7078 #531D78 #78251D
square
#42781D #1D7078 #531D78 #78251D
split-complementary
#42781D #251D78 #781D70
monochromatic
#0E1906 #274711 #42781D #5DA929 #7AD13F

Accessibility & contrast

On white

5.34
#42781D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#42781D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42781D
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42781D#FFFFFF#000000##FFFFFF
##42781D1.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E0C
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#407366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #42781d;
/* rgb */ color: rgb(66, 120, 29);
/* oklch */ color: oklch(51.6% 0.134 135.5);
Tailwind
colors: {
  custom: {
    50: '#7c9f60',
    500: '#42781d',
    950: '#000000',
  },
}
SCSS
$custom: #42781d;
$custom-light: #7c9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#42781d",
  "rgb": {
    "r": 66,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 95.604,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51604,
    "c": 0.13423,
    "h": 135.5
  },
  "luminance": 0.1468
}

Semantic roles & 50–950 ramp

primary
#42781D
secondary
#8245AC
accent
#44E4A3
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42781D

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

Preview Lab → · Contrast checker → · Palette generator →

#42781D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva