#4A8B17#4A8B17

#4A8B17 is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.1% C 0.158 H 135.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#4A8B17
RGBrgb(74, 139, 23)
HSLhsl(94, 72%, 32%)
HSVhsv(94, 83%, 55%)
CMYKcmyk(46.8%, 0%, 83.5%, 45.5%)
CIE-LABlab(51.82, -40.02, 50.31)
CIE-LCHlch(51.82, 64.28, 128.50°)
OKLaboklab(57.13% -0.112 0.1108)
OKLCHoklch(57.13% 0.158 135.3)
XYZxyz(12.2110, 19.9822, 4.0240)
Luminance0.1998 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A8B17 #58178B
analogous
#848B17 #4A8B17 #178B1E
triadic
#4A8B17 #174A8B #8B174A
tetradic
#4A8B17 #17848B #58178B #8B1E17
square
#4A8B17 #17848B #58178B #8B1E17
split-complementary
#4A8B17 #1E178B #8B1784
monochromatic
#122206 #2E560E #4A8B17 #66C020 #84DF3D

Accessibility & contrast

On white

4.20
#4A8B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#4A8B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A8B17
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A8B17#FFFFFF#000000##000000
##4A8B171.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#887A25
Tritanopia (blue-blind)
#488576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4a8b17;
/* rgb */ color: rgb(74, 139, 23);
/* oklch */ color: oklch(57.1% 0.158 135.3);
Tailwind
colors: {
  custom: {
    50: '#83ad60',
    500: '#4a8b17',
    950: '#000000',
  },
}
SCSS
$custom: #4a8b17;
$custom-light: #83ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#4a8b17",
  "rgb": {
    "r": 74,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 93.621,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57132,
    "c": 0.15754,
    "h": 135.3
  },
  "luminance": 0.19983
}

Semantic roles & 50–950 ramp

primary
#4A8B17
secondary
#873FBF
accent
#39EE9F
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #4A8B17

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

Preview Lab → · Contrast checker → · Palette generator →

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