#4A7A17#4A7A17

#4A7A17 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.5% C 0.136 H 132.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#4A7A17
RGBrgb(74, 122, 23)
HSLhsl(89, 68%, 28%)
HSVhsv(89, 81%, 48%)
CMYKcmyk(39.3%, 0%, 81.1%, 52.2%)
CIE-LABlab(46.23, -32.66, 45.14)
CIE-LCHlch(46.23, 55.72, 125.89°)
OKLaboklab(52.55% -0.0922 0.0999)
OKLCHoklch(52.55% 0.136 132.7)
XYZxyz(9.9381, 15.4363, 3.2663)
Luminance0.1544 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7A17 #47177A
analogous
#7A7817 #4A7A17 #187A17
triadic
#4A7A17 #174A7A #7A174A
tetradic
#4A7A17 #177A78 #47177A #7A1718
square
#4A7A17 #177A78 #47177A #7A1718
split-complementary
#4A7A17 #17187A #78177A
monochromatic
#101A05 #2B470D #4A7A17 #69AD21 #88D933

Accessibility & contrast

On white

5.14
#4A7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#4A7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7A17
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7A17#FFFFFF#000000##FFFFFF
##4A7A171.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#796C22
Tritanopia (blue-blind)
#4B7568
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4a7a17;
/* rgb */ color: rgb(74, 122, 23);
/* oklch */ color: oklch(52.5% 0.136 132.7);
Tailwind
colors: {
  custom: {
    50: '#81a15d',
    500: '#4a7a17',
    950: '#000000',
  },
}
SCSS
$custom: #4a7a17;
$custom-light: #81a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7a17",
  "rgb": {
    "r": 74,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 89.091,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52549,
    "c": 0.13599,
    "h": 132.7
  },
  "luminance": 0.15437
}

Semantic roles & 50–950 ramp

primary
#4A7A17
secondary
#753EAF
accent
#3DEB91
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4A7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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