#478227#478227

#478227 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.7% C 0.138 H 136.6°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#478227
RGBrgb(71, 130, 39)
HSLhsl(99, 54%, 33%)
HSVhsv(99, 70%, 51%)
CMYKcmyk(45.4%, 0%, 70%, 49%)
CIE-LABlab(48.82, -36.14, 41.55)
CIE-LCHlch(48.82, 55.07, 131.01°)
OKLaboklab(54.67% -0.1002 0.0949)
OKLCHoklch(54.67% 0.138 136.6)
XYZxyz(10.9471, 17.4507, 4.7106)
Luminance0.1745 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478227 #622782
analogous
#748227 #478227 #278234
triadic
#478227 #274782 #822747
tetradic
#478227 #277482 #622782 #823427
square
#478227 #277482 #622782 #823427
split-complementary
#478227 #342782 #822774
monochromatic
#14240B #2D5319 #478227 #61B135 #80CD57

Accessibility & contrast

On white

4.68
#478227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#478227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #478227
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478227#FFFFFF#000000##FFFFFF
##4782271.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87771A
Deuteranopia (green-blind)
#7F722F
Tritanopia (blue-blind)
#447D70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #478227;
/* rgb */ color: rgb(71, 130, 39);
/* oklch */ color: oklch(54.7% 0.138 136.6);
Tailwind
colors: {
  custom: {
    50: '#7fa766',
    500: '#478227',
    950: '#000000',
  },
}
SCSS
$custom: #478227;
$custom-light: #7fa766;
$custom-dark: #000000;
JSON
{
  "hex": "#478227",
  "rgb": {
    "r": 71,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 98.901,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5467,
    "c": 0.13804,
    "h": 136.6
  },
  "luminance": 0.17451
}

Semantic roles & 50–950 ramp

primary
#478227
secondary
#9053B1
accent
#4BDDAA
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #478227

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

Preview Lab → · Contrast checker → · Palette generator →

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