#478218#478218

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

Color values

HEX#478218
RGBrgb(71, 130, 24)
HSLhsl(93, 69%, 30%)
HSVhsv(93, 82%, 51%)
CMYKcmyk(45.4%, 0%, 81.5%, 49%)
CIE-LABlab(48.72, -37.21, 47.10)
CIE-LCHlch(48.72, 60.03, 128.31°)
OKLaboklab(54.56% -0.1042 0.1043)
OKLCHoklch(54.56% 0.147 135)
XYZxyz(10.7458, 17.3702, 3.6505)
Luminance0.1737 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478218 #531882
analogous
#7C8218 #478218 #18821E
triadic
#478218 #184782 #821847
tetradic
#478218 #187C82 #531882 #821E18
square
#478218 #187C82 #531882 #821E18
split-complementary
#478218 #1E1882 #82187C
monochromatic
#0F1B05 #2B4E0E #478218 #63B622 #81DB3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##478218#FFFFFF#000000##FFFFFF
##4782181.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)
#7F7224
Tritanopia (blue-blind)
#457D6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #478218;
/* rgb */ color: rgb(71, 130, 24);
/* oklch */ color: oklch(54.6% 0.147 135.0);
Tailwind
colors: {
  custom: {
    50: '#80a75f',
    500: '#478218',
    950: '#000000',
  },
}
SCSS
$custom: #478218;
$custom-light: #80a75f;
$custom-dark: #000000;
JSON
{
  "hex": "#478218",
  "rgb": {
    "r": 71,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 93.396,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54556,
    "c": 0.1474,
    "h": 135
  },
  "luminance": 0.17371
}

Semantic roles & 50–950 ramp

primary
#478218
secondary
#8240B6
accent
#3CEC9E
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #478218

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

Preview Lab → · Contrast checker → · Palette generator →

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