#4A7B17#4A7B17

#4A7B17 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 52.8% C 0.137 H 132.9°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#4A7B17
RGBrgb(74, 123, 23)
HSLhsl(89, 68%, 29%)
HSVhsv(89, 81%, 48%)
CMYKcmyk(39.8%, 0%, 81.3%, 51.8%)
CIE-LABlab(46.56, -33.11, 45.45)
CIE-LCHlch(46.56, 56.23, 126.07°)
OKLaboklab(52.82% -0.0934 0.1006)
OKLCHoklch(52.82% 0.137 132.9)
XYZxyz(10.0615, 15.6832, 3.3075)
Luminance0.1568 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7B17 #48177B
analogous
#7B7A17 #4A7B17 #187B17
triadic
#4A7B17 #174A7B #7B174A
tetradic
#4A7B17 #177B7A #48177B #7B1718
square
#4A7B17 #177B7A #48177B #7B1718
split-complementary
#4A7B17 #17187B #7A177B
monochromatic
#101A05 #2B470D #4A7B17 #69AF21 #88D933

Accessibility & contrast

On white

5.08
#4A7B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#4A7B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7B17
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7B17#FFFFFF#000000##FFFFFF
##4A7B171.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#7A6D22
Tritanopia (blue-blind)
#4A7669
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4a7b17;
/* rgb */ color: rgb(74, 123, 23);
/* oklch */ color: oklch(52.8% 0.137 132.9);
Tailwind
colors: {
  custom: {
    50: '#81a15d',
    500: '#4a7b17',
    950: '#000000',
  },
}
SCSS
$custom: #4a7b17;
$custom-light: #81a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7b17",
  "rgb": {
    "r": 74,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 89.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52819,
    "c": 0.13729,
    "h": 132.9
  },
  "luminance": 0.15684
}

Semantic roles & 50–950 ramp

primary
#4A7B17
secondary
#763EB0
accent
#3CEB92
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4A7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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