#4C8227#4C8227

#4C8227 is a mid, vivid yellow-green. Relative luminance 0.176; OKLCH L 54.9% C 0.135 H 135.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#4C8227
RGBrgb(76, 130, 39)
HSLhsl(96, 54%, 33%)
HSVhsv(96, 70%, 51%)
CMYKcmyk(41.5%, 0%, 70%, 49%)
CIE-LABlab(49.07, -34.39, 41.88)
CIE-LCHlch(49.07, 54.19, 129.39°)
OKLaboklab(54.94% -0.0958 0.0955)
OKLCHoklch(54.94% 0.135 135.1)
XYZxyz(11.3291, 17.6477, 4.7285)
Luminance0.1765 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8227 #5D2782
analogous
#798227 #4C8227 #27822F
triadic
#4C8227 #274C82 #82274C
tetradic
#4C8227 #277982 #5D2782 #822F27
square
#4C8227 #277982 #5D2782 #822F27
split-complementary
#4C8227 #2F2782 #822779
monochromatic
#15240B #305319 #4C8227 #68B135 #87CD57

Accessibility & contrast

On white

4.64
#4C8227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#4C8227 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4C8227
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8227#FFFFFF#000000##FFFFFF
##4C82271.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87771A
Deuteranopia (green-blind)
#80732F
Tritanopia (blue-blind)
#4B7D70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4c8227;
/* rgb */ color: rgb(76, 130, 39);
/* oklch */ color: oklch(54.9% 0.135 135.1);
Tailwind
colors: {
  custom: {
    50: '#83a766',
    500: '#4c8227',
    950: '#000000',
  },
}
SCSS
$custom: #4c8227;
$custom-light: #83a766;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8227",
  "rgb": {
    "r": 76,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 95.604,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54935,
    "c": 0.13531,
    "h": 135.1
  },
  "luminance": 0.17648
}

Semantic roles & 50–950 ramp

primary
#4C8227
secondary
#8B53B1
accent
#4BDDA2
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4C8227

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

Preview Lab → · Contrast checker → · Palette generator →

#4C8227 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva