#42791F#42791F

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

Color values

HEX#42791F
RGBrgb(66, 121, 31)
HSLhsl(97, 59%, 30%)
HSVhsv(97, 74%, 47%)
CMYKcmyk(45.5%, 0%, 74.4%, 52.5%)
CIE-LABlab(45.54, -34.60, 41.40)
CIE-LCHlch(45.54, 53.96, 129.89°)
OKLaboklab(51.89% -0.0963 0.0935)
OKLCHoklch(51.89% 0.134 135.8)
XYZxyz(9.3312, 14.9314, 3.6864)
Luminance0.1493 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42791F #561F79
analogous
#6F791F #42791F #1F7929
triadic
#42791F #1F4279 #791F42
tetradic
#42791F #1F6F79 #561F79 #79291F
square
#42791F #1F6F79 #561F79 #79291F
split-complementary
#42791F #291F79 #791F6F
monochromatic
#0D1806 #274813 #42791F #5DAA2B #7ACF43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42791F#FFFFFF#000000##FFFFFF
##42791F1.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)
#7D6F10
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#407467
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #42791f;
/* rgb */ color: rgb(66, 121, 31);
/* oklch */ color: oklch(51.9% 0.134 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ca061',
    500: '#42791f',
    950: '#000000',
  },
}
SCSS
$custom: #42791f;
$custom-light: #7ca061;
$custom-dark: #000000;
JSON
{
  "hex": "#42791f",
  "rgb": {
    "r": 66,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 96.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51894,
    "c": 0.13425,
    "h": 135.8
  },
  "luminance": 0.14932
}

Semantic roles & 50–950 ramp

primary
#42791F
secondary
#8547AC
accent
#45E2A5
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #42791F

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

Preview Lab → · Contrast checker → · Palette generator →

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