#42791B#42791B

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

Color values

HEX#42791B
RGBrgb(66, 121, 27)
HSLhsl(95, 64%, 29%)
HSVhsv(95, 78%, 47%)
CMYKcmyk(45.5%, 0%, 77.7%, 52.5%)
CIE-LABlab(45.51, -34.89, 42.92)
CIE-LCHlch(45.51, 55.31, 129.11°)
OKLaboklab(51.86% -0.0974 0.0961)
OKLCHoklch(51.86% 0.137 135.4)
XYZxyz(9.2818, 14.9116, 3.4258)
Luminance0.1491 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42791B #521B79
analogous
#71791B #42791B #1B7923
triadic
#42791B #1B4279 #791B42
tetradic
#42791B #1B7179 #521B79 #79231B
square
#42791B #1B7179 #521B79 #79231B
split-complementary
#42791B #231B79 #791B71
monochromatic
#0E1906 #274710 #42791B #5DAB26 #7AD33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #42791b;
/* rgb */ color: rgb(66, 121, 27);
/* oklch */ color: oklch(51.9% 0.137 135.4);
Tailwind
colors: {
  custom: {
    50: '#7ca05f',
    500: '#42791b',
    950: '#000000',
  },
}
SCSS
$custom: #42791b;
$custom-light: #7ca05f;
$custom-dark: #000000;
JSON
{
  "hex": "#42791b",
  "rgb": {
    "r": 66,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 95.106,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51863,
    "c": 0.13681,
    "h": 135.4
  },
  "luminance": 0.14912
}

Semantic roles & 50–950 ramp

primary
#42791B
secondary
#8143AD
accent
#41E7A2
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #42791B

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

Preview Lab → · Contrast checker → · Palette generator →

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