#42741B#42741B

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

Color values

HEX#42741B
RGBrgb(66, 116, 27)
HSLhsl(94, 62%, 28%)
HSVhsv(94, 77%, 45%)
CMYKcmyk(43.1%, 0%, 76.7%, 54.5%)
CIE-LABlab(43.84, -32.68, 41.27)
CIE-LCHlch(43.84, 52.64, 128.38°)
OKLaboklab(50.49% -0.0914 0.0926)
OKLCHoklch(50.49% 0.13 134.6)
XYZxyz(8.6898, 13.7277, 3.2285)
Luminance0.1373 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42741B #4D1B74
analogous
#6E741B #42741B #1B7420
triadic
#42741B #1B4274 #741B42
tetradic
#42741B #1B6E74 #4D1B74 #74201B
square
#42741B #1B6E74 #4D1B74 #74201B
split-complementary
#42741B #201B74 #741B6E
monochromatic
#0E1906 #26420F #42741B #5EA627 #7BD139

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42741B#FFFFFF#000000##FFFFFF
##42741B1.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)
#796A0A
Deuteranopia (green-blind)
#726624
Tritanopia (blue-blind)
#416F63
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #42741b;
/* rgb */ color: rgb(66, 116, 27);
/* oklch */ color: oklch(50.5% 0.130 134.6);
Tailwind
colors: {
  custom: {
    50: '#7b9c5e',
    500: '#42741b',
    950: '#000000',
  },
}
SCSS
$custom: #42741b;
$custom-light: #7b9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#42741b",
  "rgb": {
    "r": 66,
    "g": 116,
    "b": 27
  },
  "hsl": {
    "h": 93.708,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50492,
    "c": 0.13016,
    "h": 134.6
  },
  "luminance": 0.13728
}

Semantic roles & 50–950 ramp

primary
#42741B
secondary
#7C42A9
accent
#42E59E
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42741B

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

Preview Lab → · Contrast checker → · Palette generator →

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