#4A7C17#4A7C17

#4A7C17 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.1% C 0.139 H 133.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#4A7C17
RGBrgb(74, 124, 23)
HSLhsl(90, 69%, 29%)
HSVhsv(90, 81%, 49%)
CMYKcmyk(40.3%, 0%, 81.5%, 51.4%)
CIE-LABlab(46.89, -33.56, 45.76)
CIE-LCHlch(46.89, 56.75, 126.26°)
OKLaboklab(53.09% -0.0946 0.1012)
OKLCHoklch(53.09% 0.139 133.1)
XYZxyz(10.1862, 15.9325, 3.3490)
Luminance0.1593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7C17 #49177C
analogous
#7C7C17 #4A7C17 #187C17
triadic
#4A7C17 #174A7C #7C174A
tetradic
#4A7C17 #177C7C #49177C #7C1718
square
#4A7C17 #177C7C #49177C #7C1718
split-complementary
#4A7C17 #17187C #7C177C
monochromatic
#0F1A05 #2B480D #4A7C17 #69B021 #88D934

Accessibility & contrast

On white

5.02
#4A7C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#4A7C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7C17
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7C17#FFFFFF#000000##FFFFFF
##4A7C171.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#4A7769
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4a7c17;
/* rgb */ color: rgb(74, 124, 23);
/* oklch */ color: oklch(53.1% 0.139 133.1);
Tailwind
colors: {
  custom: {
    50: '#81a25d',
    500: '#4a7c17',
    950: '#000000',
  },
}
SCSS
$custom: #4a7c17;
$custom-light: #81a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7c17",
  "rgb": {
    "r": 74,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 89.703,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53089,
    "c": 0.13858,
    "h": 133.1
  },
  "luminance": 0.15933
}

Semantic roles & 50–950 ramp

primary
#4A7C17
secondary
#773EB1
accent
#3CEC93
background
#F8FAF5
surface
#EFF3E9
border
#CACDC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4A7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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