#4A7F15#4A7F15

#4A7F15 is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 53.9% C 0.143 H 133.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#4A7F15
RGBrgb(74, 127, 21)
HSLhsl(90, 72%, 29%)
HSVhsv(90, 83%, 50%)
CMYKcmyk(41.7%, 0%, 83.5%, 50.2%)
CIE-LABlab(47.86, -35.00, 47.29)
CIE-LCHlch(47.86, 58.83, 126.50°)
OKLaboklab(53.89% -0.0986 0.1041)
OKLCHoklch(53.89% 0.143 133.5)
XYZxyz(10.5486, 16.6882, 3.3747)
Luminance0.1669 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7F15 #4A157F
analogous
#7F7F15 #4A7F15 #157F15
triadic
#4A7F15 #154A7F #7F154A
tetradic
#4A7F15 #157F7F #4A157F #7F1515
square
#4A7F15 #157F7F #4A157F #7F1515
split-complementary
#4A7F15 #15157F #7F157F
monochromatic
#0F1A04 #2B4A0C #4A7F15 #69B41E #87DD31

Accessibility & contrast

On white

4.84
#4A7F15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#4A7F15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7F15
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7F15#FFFFFF#000000##FFFFFF
##4A7F151.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7D7021
Tritanopia (blue-blind)
#4A7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4a7f15;
/* rgb */ color: rgb(74, 127, 21);
/* oklch */ color: oklch(53.9% 0.143 133.5);
Tailwind
colors: {
  custom: {
    50: '#82a45d',
    500: '#4a7f15',
    950: '#000000',
  },
}
SCSS
$custom: #4a7f15;
$custom-light: #82a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7f15",
  "rgb": {
    "r": 74,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 90,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53887,
    "c": 0.14343,
    "h": 133.5
  },
  "luminance": 0.16689
}

Semantic roles & 50–950 ramp

primary
#4A7F15
secondary
#783CB4
accent
#39EE94
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4A7F15

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

Preview Lab → · Contrast checker → · Palette generator →

#4A7F15 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva