#4A7217#4A7217

#4A7217 is a mid, vivid yellow-green. Relative luminance 0.136; OKLCH L 50.4% C 0.125 H 131.0°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#4A7217
RGBrgb(74, 114, 23)
HSLhsl(86, 66%, 27%)
HSVhsv(86, 80%, 45%)
CMYKcmyk(35.1%, 0%, 79.8%, 55.3%)
CIE-LABlab(43.58, -28.96, 42.65)
CIE-LCHlch(43.58, 51.55, 124.18°)
OKLaboklab(50.39% -0.0822 0.0947)
OKLCHoklch(50.39% 0.125 131)
XYZxyz(8.9959, 13.5520, 2.9523)
Luminance0.1355 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7217 #3F1772
analogous
#726D17 #4A7217 #1C7217
triadic
#4A7217 #174A72 #72174A
tetradic
#4A7217 #17726D #3F1772 #72171C
square
#4A7217 #17726D #3F1772 #72171C
split-complementary
#4A7217 #171C72 #6D1772
monochromatic
#111905 #293F0D #4A7217 #6BA521 #8CD52E

Accessibility & contrast

On white

5.66
#4A7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#4A7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7217
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7217#FFFFFF#000000##FFFFFF
##4A72171.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776902
Deuteranopia (green-blind)
#726620
Tritanopia (blue-blind)
#4C6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4a7217;
/* rgb */ color: rgb(74, 114, 23);
/* oklch */ color: oklch(50.4% 0.125 131.0);
Tailwind
colors: {
  custom: {
    50: '#809b5c',
    500: '#4a7217',
    950: '#000000',
  },
}
SCSS
$custom: #4a7217;
$custom-light: #809b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7217",
  "rgb": {
    "r": 74,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 86.374,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.50391,
    "c": 0.12542,
    "h": 131
  },
  "luminance": 0.13552
}

Semantic roles & 50–950 ramp

primary
#4A7217
secondary
#6C3DA8
accent
#3EE98A
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7217

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

Preview Lab → · Contrast checker → · Palette generator →

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