#42740F#42740F

#42740F is a mid, vivid yellow-green. Relative luminance 0.137; OKLCH L 50.4% C 0.137 H 133.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#42740F
RGBrgb(66, 116, 15)
HSLhsl(90, 77%, 26%)
HSVhsv(90, 87%, 45%)
CMYKcmyk(43.1%, 0%, 87.1%, 54.5%)
CIE-LABlab(43.77, -33.37, 45.17)
CIE-LCHlch(43.77, 56.16, 126.46°)
OKLaboklab(50.42% -0.0941 0.0989)
OKLCHoklch(50.42% 0.137 133.6)
XYZxyz(8.5782, 13.6831, 2.6409)
Luminance0.1368 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42740F #410F74
analogous
#74730F #42740F #0F740F
triadic
#42740F #0F4274 #740F42
tetradic
#42740F #0F7473 #410F74 #740F0F
square
#42740F #0F7473 #410F74 #740F0F
split-complementary
#42740F #0F0F74 #730F74
monochromatic
#0F1B04 #233E08 #42740F #61AA16 #80E01D

Accessibility & contrast

On white

5.62
#42740F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#42740F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42740F
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42740F#FFFFFF#000000##FFFFFF
##42740F1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#72661C
Tritanopia (blue-blind)
#426F62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #42740f;
/* rgb */ color: rgb(66, 116, 15);
/* oklch */ color: oklch(50.4% 0.137 133.6);
Tailwind
colors: {
  custom: {
    50: '#7c9c59',
    500: '#42740f',
    950: '#000000',
  },
}
SCSS
$custom: #42740f;
$custom-light: #7c9c59;
$custom-dark: #000000;
JSON
{
  "hex": "#42740f",
  "rgb": {
    "r": 66,
    "g": 116,
    "b": 15
  },
  "hsl": {
    "h": 89.703,
    "s": 77.099,
    "l": 25.686
  },
  "oklch": {
    "l": 0.50418,
    "c": 0.1365,
    "h": 133.6
  },
  "luminance": 0.13684
}

Semantic roles & 50–950 ramp

primary
#42740F
secondary
#6F33AC
accent
#34F493
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #42740F

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

Preview Lab → · Contrast checker → · Palette generator →

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