#478112#478112

#478112 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.3% C 0.149 H 134.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#478112
RGBrgb(71, 129, 18)
HSLhsl(91, 76%, 29%)
HSVhsv(91, 86%, 51%)
CMYKcmyk(45%, 0%, 86%, 49.4%)
CIE-LABlab(48.36, -37.08, 48.53)
CIE-LCHlch(48.36, 61.08, 127.38°)
OKLaboklab(54.25% -0.1042 0.1064)
OKLCHoklch(54.25% 0.149 134.4)
XYZxyz(10.5578, 17.0832, 3.3132)
Luminance0.1708 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478112 #4C1281
analogous
#7F8112 #478112 #128114
triadic
#478112 #124781 #811247
tetradic
#478112 #127F81 #4C1281 #811412
square
#478112 #127F81 #4C1281 #811412
split-complementary
#478112 #141281 #81127F
monochromatic
#0F1B04 #294B0B #478112 #65B719 #83E22C

Accessibility & contrast

On white

4.75
#478112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#478112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #478112
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478112#FFFFFF#000000##FFFFFF
##4781121.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#7F7120
Tritanopia (blue-blind)
#467C6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #478112;
/* rgb */ color: rgb(71, 129, 18);
/* oklch */ color: oklch(54.3% 0.149 134.4);
Tailwind
colors: {
  custom: {
    50: '#80a65c',
    500: '#478112',
    950: '#000000',
  },
}
SCSS
$custom: #478112;
$custom-light: #80a65c;
$custom-dark: #000000;
JSON
{
  "hex": "#478112",
  "rgb": {
    "r": 71,
    "g": 129,
    "b": 18
  },
  "hsl": {
    "h": 91.351,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54253,
    "c": 0.1489,
    "h": 134.4
  },
  "luminance": 0.17084
}

Semantic roles & 50–950 ramp

primary
#478112
secondary
#7A38B7
accent
#36F298
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #478112

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

Preview Lab → · Contrast checker → · Palette generator →

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