#478717#478717

#478717 is a mid, vivid yellow-green. Relative luminance 0.187; OKLCH L 55.9% C 0.154 H 135.5°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#478717
RGBrgb(71, 135, 23)
HSLhsl(94, 71%, 31%)
HSVhsv(94, 83%, 53%)
CMYKcmyk(47.4%, 0%, 83%, 47.1%)
CIE-LABlab(50.37, -39.37, 48.93)
CIE-LCHlch(50.37, 62.80, 128.82°)
OKLaboklab(55.91% -0.11 0.108)
OKLCHoklch(55.91% 0.154 135.5)
XYZxyz(11.4169, 18.7287, 3.8239)
Luminance0.1873 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478717 #571787
analogous
#7F8717 #478717 #17871F
triadic
#478717 #174787 #871747
tetradic
#478717 #177F87 #571787 #871F17
square
#478717 #177F87 #571787 #871F17
split-complementary
#478717 #1F1787 #87177F
monochromatic
#101E05 #2B530E #478717 #62BB20 #81DE3B

Accessibility & contrast

On white

4.42
#478717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#478717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #478717
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478717#FFFFFF#000000##000000
##4787171.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#847624
Tritanopia (blue-blind)
#458273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #478717;
/* rgb */ color: rgb(71, 135, 23);
/* oklch */ color: oklch(55.9% 0.154 135.5);
Tailwind
colors: {
  custom: {
    50: '#81aa5f',
    500: '#478717',
    950: '#000000',
  },
}
SCSS
$custom: #478717;
$custom-light: #81aa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#478717",
  "rgb": {
    "r": 71,
    "g": 135,
    "b": 23
  },
  "hsl": {
    "h": 94.286,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55905,
    "c": 0.15416,
    "h": 135.5
  },
  "luminance": 0.18729
}

Semantic roles & 50–950 ramp

primary
#478717
secondary
#863FBB
accent
#3AEEA1
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #478717

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

Preview Lab → · Contrast checker → · Palette generator →

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