#4A7817#4A7817

#4A7817 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.0% C 0.133 H 132.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#4A7817
RGBrgb(74, 120, 23)
HSLhsl(88, 68%, 28%)
HSVhsv(88, 81%, 47%)
CMYKcmyk(38.3%, 0%, 80.8%, 52.9%)
CIE-LABlab(45.57, -31.75, 44.52)
CIE-LCHlch(45.57, 54.69, 125.50°)
OKLaboklab(52.01% -0.0898 0.0986)
OKLCHoklch(52.01% 0.133 132.3)
XYZxyz(9.6950, 14.9502, 3.1853)
Luminance0.1495 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7817 #451778
analogous
#787517 #4A7817 #197817
triadic
#4A7817 #174A78 #78174A
tetradic
#4A7817 #177875 #451778 #781719
square
#4A7817 #177875 #451778 #781719
split-complementary
#4A7817 #171978 #751778
monochromatic
#101A05 #2A450D #4A7817 #6AAB21 #89D832

Accessibility & contrast

On white

5.26
#4A7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#4A7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7817
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7817#FFFFFF#000000##FFFFFF
##4A78171.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#776B21
Tritanopia (blue-blind)
#4B7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4a7817;
/* rgb */ color: rgb(74, 120, 23);
/* oklch */ color: oklch(52.0% 0.133 132.3);
Tailwind
colors: {
  custom: {
    50: '#819f5d',
    500: '#4a7817',
    950: '#000000',
  },
}
SCSS
$custom: #4a7817;
$custom-light: #819f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7817",
  "rgb": {
    "r": 74,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 88.454,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5201,
    "c": 0.13337,
    "h": 132.3
  },
  "luminance": 0.14951
}

Semantic roles & 50–950 ramp

primary
#4A7817
secondary
#733EAD
accent
#3DEB8F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4A7817

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

Preview Lab → · Contrast checker → · Palette generator →

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