#4A7917#4A7917

#4A7917 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.3% C 0.135 H 132.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#4A7917
RGBrgb(74, 121, 23)
HSLhsl(89, 68%, 28%)
HSVhsv(89, 81%, 47%)
CMYKcmyk(38.8%, 0%, 81%, 52.5%)
CIE-LABlab(45.90, -32.21, 44.83)
CIE-LCHlch(45.90, 55.20, 125.69°)
OKLaboklab(52.28% -0.091 0.0993)
OKLCHoklch(52.28% 0.135 132.5)
XYZxyz(9.8159, 15.1920, 3.2256)
Luminance0.1519 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7917 #461779
analogous
#797717 #4A7917 #197917
triadic
#4A7917 #174A79 #79174A
tetradic
#4A7917 #177977 #461779 #791719
square
#4A7917 #177977 #461779 #791719
split-complementary
#4A7917 #171979 #771779
monochromatic
#101A05 #2B460D #4A7917 #69AC21 #89D832

Accessibility & contrast

On white

5.20
#4A7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#4A7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7917
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7917#FFFFFF#000000##FFFFFF
##4A79171.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#786B22
Tritanopia (blue-blind)
#4B7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4a7917;
/* rgb */ color: rgb(74, 121, 23);
/* oklch */ color: oklch(52.3% 0.135 132.5);
Tailwind
colors: {
  custom: {
    50: '#81a05d',
    500: '#4a7917',
    950: '#000000',
  },
}
SCSS
$custom: #4a7917;
$custom-light: #81a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7917",
  "rgb": {
    "r": 74,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 88.776,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52279,
    "c": 0.13468,
    "h": 132.5
  },
  "luminance": 0.15192
}

Semantic roles & 50–950 ramp

primary
#4A7917
secondary
#743EAE
accent
#3DEB90
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4A7917

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

Preview Lab → · Contrast checker → · Palette generator →

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