#42791E#42791E

#42791E is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 51.9% C 0.135 H 135.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#42791E
RGBrgb(66, 121, 30)
HSLhsl(96, 60%, 30%)
HSVhsv(96, 75%, 47%)
CMYKcmyk(45.5%, 0%, 75.2%, 52.5%)
CIE-LABlab(45.53, -34.68, 41.79)
CIE-LCHlch(45.53, 54.30, 129.68°)
OKLaboklab(51.89% -0.0966 0.0942)
OKLCHoklch(51.89% 0.135 135.7)
XYZxyz(9.3183, 14.9262, 3.6181)
Luminance0.1493 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42791E #551E79
analogous
#70791E #42791E #1E7928
triadic
#42791E #1E4279 #791E42
tetradic
#42791E #1E7079 #551E79 #79281E
square
#42791E #1E7079 #551E79 #79281E
split-complementary
#42791E #281E79 #791E70
monochromatic
#0D1906 #274812 #42791E #5DAA2A #7AD041

Accessibility & contrast

On white

5.27
#42791E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#42791E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42791E
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42791E#FFFFFF#000000##FFFFFF
##42791E1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0E
Deuteranopia (green-blind)
#766A27
Tritanopia (blue-blind)
#407467
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #42791e;
/* rgb */ color: rgb(66, 121, 30);
/* oklch */ color: oklch(51.9% 0.135 135.7);
Tailwind
colors: {
  custom: {
    50: '#7ca060',
    500: '#42791e',
    950: '#000000',
  },
}
SCSS
$custom: #42791e;
$custom-light: #7ca060;
$custom-dark: #000000;
JSON
{
  "hex": "#42791e",
  "rgb": {
    "r": 66,
    "g": 121,
    "b": 30
  },
  "hsl": {
    "h": 96.264,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.51886,
    "c": 0.13492,
    "h": 135.7
  },
  "luminance": 0.14927
}

Semantic roles & 50–950 ramp

primary
#42791E
secondary
#8446AD
accent
#44E3A5
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #42791E

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

Preview Lab → · Contrast checker → · Palette generator →

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