#478126#478126

#478126 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.4% C 0.137 H 136.3°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#478126
RGBrgb(71, 129, 38)
HSLhsl(98, 54%, 33%)
HSVhsv(98, 71%, 51%)
CMYKcmyk(45%, 0%, 70.5%, 49.4%)
CIE-LABlab(48.49, -35.79, 41.62)
CIE-LCHlch(48.49, 54.90, 130.69°)
OKLaboklab(54.39% -0.0994 0.0949)
OKLCHoklch(54.39% 0.137 136.3)
XYZxyz(10.7984, 17.1794, 4.5803)
Luminance0.1718 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#478126 #602681
analogous
#748126 #478126 #268133
triadic
#478126 #264781 #812647
tetradic
#478126 #267481 #602681 #813326
square
#478126 #267481 #602681 #813326
split-complementary
#478126 #332681 #812674
monochromatic
#13220A #2D5218 #478126 #61B034 #80CD55

Accessibility & contrast

On white

4.73
#478126 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#478126 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #478126
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##478126#FFFFFF#000000##FFFFFF
##4781261.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867619
Deuteranopia (green-blind)
#7E712E
Tritanopia (blue-blind)
#457C6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #478126;
/* rgb */ color: rgb(71, 129, 38);
/* oklch */ color: oklch(54.4% 0.137 136.3);
Tailwind
colors: {
  custom: {
    50: '#7fa666',
    500: '#478126',
    950: '#000000',
  },
}
SCSS
$custom: #478126;
$custom-light: #7fa666;
$custom-dark: #000000;
JSON
{
  "hex": "#478126",
  "rgb": {
    "r": 71,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 98.242,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5439,
    "c": 0.13741,
    "h": 136.3
  },
  "luminance": 0.1718
}

Semantic roles & 50–950 ramp

primary
#478126
secondary
#8F51B1
accent
#4ADEA8
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #478126

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

Preview Lab → · Contrast checker → · Palette generator →

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