#42791C#42791C

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

Color values

HEX#42791C
RGBrgb(66, 121, 28)
HSLhsl(95, 62%, 29%)
HSVhsv(95, 77%, 47%)
CMYKcmyk(45.5%, 0%, 76.9%, 52.5%)
CIE-LABlab(45.52, -34.82, 42.55)
CIE-LCHlch(45.52, 54.98, 129.30°)
OKLaboklab(51.87% -0.0971 0.0955)
OKLCHoklch(51.87% 0.136 135.5)
XYZxyz(9.2935, 14.9163, 3.4878)
Luminance0.1492 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42791C #531C79
analogous
#71791C #42791C #1C7925
triadic
#42791C #1C4279 #791C42
tetradic
#42791C #1C7179 #531C79 #79251C
square
#42791C #1C7179 #531C79 #79251C
split-complementary
#42791C #251C79 #791C71
monochromatic
#0E1906 #274710 #42791C #5DAB28 #7AD23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42791C#FFFFFF#000000##FFFFFF
##42791C1.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)
#7E6F09
Deuteranopia (green-blind)
#766A25
Tritanopia (blue-blind)
#407467
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #42791c;
/* rgb */ color: rgb(66, 121, 28);
/* oklch */ color: oklch(51.9% 0.136 135.5);
Tailwind
colors: {
  custom: {
    50: '#7ca05f',
    500: '#42791c',
    950: '#000000',
  },
}
SCSS
$custom: #42791c;
$custom-light: #7ca05f;
$custom-dark: #000000;
JSON
{
  "hex": "#42791c",
  "rgb": {
    "r": 66,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 95.484,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5187,
    "c": 0.13619,
    "h": 135.5
  },
  "luminance": 0.14917
}

Semantic roles & 50–950 ramp

primary
#42791C
secondary
#8244AD
accent
#42E5A3
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #42791C

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

Preview Lab → · Contrast checker → · Palette generator →

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