#42771C#42771C

#42771C is a mid, vivid yellow-green. Relative luminance 0.144; OKLCH L 51.3% C 0.134 H 135.2°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#42771C
RGBrgb(66, 119, 28)
HSLhsl(95, 62%, 29%)
HSVhsv(95, 76%, 47%)
CMYKcmyk(44.5%, 0%, 76.5%, 53.3%)
CIE-LABlab(44.85, -33.94, 41.89)
CIE-LCHlch(44.85, 53.91, 129.02°)
OKLaboklab(51.32% -0.0948 0.0941)
OKLCHoklch(51.32% 0.134 135.2)
XYZxyz(9.0530, 14.4352, 3.4076)
Luminance0.1444 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42771C #511C77
analogous
#70771C #42771C #1C7724
triadic
#42771C #1C4277 #771C42
tetradic
#42771C #1C7077 #511C77 #77241C
square
#42771C #1C7077 #511C77 #77241C
split-complementary
#42771C #241C77 #771C70
monochromatic
#0E1906 #274510 #42771C #5DA928 #7AD13C

Accessibility & contrast

On white

5.40
#42771C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#42771C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42771C
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42771C#FFFFFF#000000##FFFFFF
##42771C1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D0A
Deuteranopia (green-blind)
#746925
Tritanopia (blue-blind)
#417265
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #42771c;
/* rgb */ color: rgb(66, 119, 28);
/* oklch */ color: oklch(51.3% 0.134 135.2);
Tailwind
colors: {
  custom: {
    50: '#7b9f5f',
    500: '#42771c',
    950: '#000000',
  },
}
SCSS
$custom: #42771c;
$custom-light: #7b9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#42771c",
  "rgb": {
    "r": 66,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 94.945,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51322,
    "c": 0.13354,
    "h": 135.2
  },
  "luminance": 0.14436
}

Semantic roles & 50–950 ramp

primary
#42771C
secondary
#8044AB
accent
#43E5A1
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42771C

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

Preview Lab → · Contrast checker → · Palette generator →

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