#478217#478217

#478217 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.5% C 0.148 H 134.9°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#478217
RGBrgb(71, 130, 23)
HSLhsl(93, 70%, 30%)
HSVhsv(93, 82%, 51%)
CMYKcmyk(45.4%, 0%, 82.3%, 49%)
CIE-LABlab(48.72, -37.26, 47.41)
CIE-LCHlch(48.72, 60.30, 128.17°)
OKLaboklab(54.55% -0.1044 0.1048)
OKLCHoklch(54.55% 0.148 134.9)
XYZxyz(10.7356, 17.3661, 3.5968)
Luminance0.1737 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478217 #521782
analogous
#7D8217 #478217 #17821C
triadic
#478217 #174782 #821747
tetradic
#478217 #177D82 #521782 #821C17
square
#478217 #177D82 #521782 #821C17
split-complementary
#478217 #1C1782 #82177D
monochromatic
#0E1A05 #2B4E0E #478217 #63B620 #81DC38

Accessibility & contrast

On white

4.69
#478217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#478217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #478217
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478217#FFFFFF#000000##FFFFFF
##4782171.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#7F7223
Tritanopia (blue-blind)
#467D6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #478217;
/* rgb */ color: rgb(71, 130, 23);
/* oklch */ color: oklch(54.5% 0.148 134.9);
Tailwind
colors: {
  custom: {
    50: '#80a75e',
    500: '#478217',
    950: '#000000',
  },
}
SCSS
$custom: #478217;
$custom-light: #80a75e;
$custom-dark: #000000;
JSON
{
  "hex": "#478217",
  "rgb": {
    "r": 71,
    "g": 130,
    "b": 23
  },
  "hsl": {
    "h": 93.084,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.5455,
    "c": 0.1479,
    "h": 134.9
  },
  "luminance": 0.17367
}

Semantic roles & 50–950 ramp

primary
#478217
secondary
#813EB6
accent
#3BED9D
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #478217

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

Preview Lab → · Contrast checker → · Palette generator →

#478217 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva