#42781E#42781E

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

Color values

HEX#42781E
RGBrgb(66, 120, 30)
HSLhsl(96, 60%, 29%)
HSVhsv(96, 75%, 47%)
CMYKcmyk(45%, 0%, 75%, 52.9%)
CIE-LABlab(45.20, -34.24, 41.46)
CIE-LCHlch(45.20, 53.77, 129.55°)
OKLaboklab(51.61% -0.0954 0.0935)
OKLCHoklch(51.61% 0.134 135.6)
XYZxyz(9.1974, 14.6844, 3.5778)
Luminance0.1469 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42781E #541E78
analogous
#6F781E #42781E #1E7827
triadic
#42781E #1E4278 #781E42
tetradic
#42781E #1E6F78 #541E78 #78271E
square
#42781E #1E6F78 #541E78 #78271E
split-complementary
#42781E #271E78 #781E6F
monochromatic
#0D1806 #274712 #42781E #5DA92A #7ACF41

Accessibility & contrast

On white

5.33
#42781E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #42781E
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42781E#FFFFFF#000000##FFFFFF
##42781E1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42781e;
/* rgb */ color: rgb(66, 120, 30);
/* oklch */ color: oklch(51.6% 0.134 135.6);
Tailwind
colors: {
  custom: {
    50: '#7c9f60',
    500: '#42781e',
    950: '#000000',
  },
}
SCSS
$custom: #42781e;
$custom-light: #7c9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#42781e",
  "rgb": {
    "r": 66,
    "g": 120,
    "b": 30
  },
  "hsl": {
    "h": 96,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51612,
    "c": 0.13358,
    "h": 135.6
  },
  "luminance": 0.14685
}

Semantic roles & 50–950 ramp

primary
#42781E
secondary
#8346AC
accent
#45E3A4
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42781E

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

Preview Lab → · Contrast checker → · Palette generator →

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