#42741C#42741C

#42741C is a mid, vivid yellow-green. Relative luminance 0.137; OKLCH L 50.5% C 0.130 H 134.7°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#42741C
RGBrgb(66, 116, 28)
HSLhsl(94, 61%, 28%)
HSVhsv(94, 76%, 45%)
CMYKcmyk(43.1%, 0%, 75.9%, 54.5%)
CIE-LABlab(43.85, -32.61, 40.89)
CIE-LCHlch(43.85, 52.30, 128.57°)
OKLaboklab(50.5% -0.0912 0.092)
OKLCHoklch(50.5% 0.13 134.7)
XYZxyz(8.7016, 13.7324, 3.2905)
Luminance0.1373 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42741C #4E1C74
analogous
#6E741C #42741C #1C7422
triadic
#42741C #1C4274 #741C42
tetradic
#42741C #1C6E74 #4E1C74 #74221C
square
#42741C #1C6E74 #4E1C74 #74221C
split-complementary
#42741C #221C74 #741C6E
monochromatic
#0E1906 #264310 #42741C #5EA528 #7BD03B

Accessibility & contrast

On white

5.61
#42741C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#42741C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42741C
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42741C#FFFFFF#000000##FFFFFF
##42741C1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A0C
Deuteranopia (green-blind)
#726625
Tritanopia (blue-blind)
#416F63
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #42741c;
/* rgb */ color: rgb(66, 116, 28);
/* oklch */ color: oklch(50.5% 0.130 134.7);
Tailwind
colors: {
  custom: {
    50: '#7b9c5f',
    500: '#42741c',
    950: '#000000',
  },
}
SCSS
$custom: #42741c;
$custom-light: #7b9c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#42741c",
  "rgb": {
    "r": 66,
    "g": 116,
    "b": 28
  },
  "hsl": {
    "h": 94.091,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50499,
    "c": 0.12951,
    "h": 134.7
  },
  "luminance": 0.13733
}

Semantic roles & 50–950 ramp

primary
#42741C
secondary
#7D43A8
accent
#44E49F
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42741C

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

Preview Lab → · Contrast checker → · Palette generator →

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