#42791A#42791A

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

Color values

HEX#42791A
RGBrgb(66, 121, 26)
HSLhsl(95, 65%, 29%)
HSVhsv(95, 79%, 47%)
CMYKcmyk(45.5%, 0%, 78.5%, 52.5%)
CIE-LABlab(45.51, -34.96, 43.28)
CIE-LCHlch(45.51, 55.63, 128.93°)
OKLaboklab(51.86% -0.0977 0.0967)
OKLCHoklch(51.86% 0.137 135.3)
XYZxyz(9.2704, 14.9070, 3.3660)
Luminance0.1491 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42791A #511A79
analogous
#72791A #42791A #1A7922
triadic
#42791A #1A4279 #791A42
tetradic
#42791A #1A7279 #511A79 #79221A
square
#42791A #1A7279 #511A79 #79221A
split-complementary
#42791A #221A79 #791A72
monochromatic
#0E1905 #27470F #42791A #5DAB25 #7AD439

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42791A#FFFFFF#000000##FFFFFF
##42791A1.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)
#7E6F05
Deuteranopia (green-blind)
#766A24
Tritanopia (blue-blind)
#407467
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #42791a;
/* rgb */ color: rgb(66, 121, 26);
/* oklch */ color: oklch(51.9% 0.137 135.3);
Tailwind
colors: {
  custom: {
    50: '#7ca05e',
    500: '#42791a',
    950: '#000000',
  },
}
SCSS
$custom: #42791a;
$custom-light: #7ca05e;
$custom-dark: #000000;
JSON
{
  "hex": "#42791a",
  "rgb": {
    "r": 66,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 94.737,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51856,
    "c": 0.13741,
    "h": 135.3
  },
  "luminance": 0.14908
}

Semantic roles & 50–950 ramp

primary
#42791A
secondary
#8041AD
accent
#40E8A1
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #42791A

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

Preview Lab → · Contrast checker → · Palette generator →

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