#42791D#42791D

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

Color values

HEX#42791D
RGBrgb(66, 121, 29)
HSLhsl(96, 61%, 29%)
HSVhsv(96, 76%, 47%)
CMYKcmyk(45.5%, 0%, 76%, 52.5%)
CIE-LABlab(45.53, -34.75, 42.18)
CIE-LCHlch(45.53, 54.65, 129.49°)
OKLaboklab(51.88% -0.0969 0.0948)
OKLCHoklch(51.88% 0.136 135.6)
XYZxyz(9.3057, 14.9212, 3.5519)
Luminance0.1492 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42791D #541D79
analogous
#70791D #42791D #1D7926
triadic
#42791D #1D4279 #791D42
tetradic
#42791D #1D7079 #541D79 #79261D
square
#42791D #1D7079 #541D79 #79261D
split-complementary
#42791D #261D79 #791D70
monochromatic
#0D1906 #274811 #42791D #5DAA29 #7AD13F

Accessibility & contrast

On white

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

On black

3.98
#42791D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##42791D#FFFFFF#000000##FFFFFF
##42791D1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42791d;
/* rgb */ color: rgb(66, 121, 29);
/* oklch */ color: oklch(51.9% 0.136 135.6);
Tailwind
colors: {
  custom: {
    50: '#7ca060',
    500: '#42791d',
    950: '#000000',
  },
}
SCSS
$custom: #42791d;
$custom-light: #7ca060;
$custom-dark: #000000;
JSON
{
  "hex": "#42791d",
  "rgb": {
    "r": 66,
    "g": 121,
    "b": 29
  },
  "hsl": {
    "h": 95.87,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51878,
    "c": 0.13557,
    "h": 135.6
  },
  "luminance": 0.14922
}

Semantic roles & 50–950 ramp

primary
#42791D
secondary
#8345AD
accent
#43E4A4
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #42791D

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

Preview Lab → · Contrast checker → · Palette generator →

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