#4A7828#4A7828

#4A7828 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.2% C 0.122 H 134.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#4A7828
RGBrgb(74, 120, 40)
HSLhsl(95, 50%, 31%)
HSVhsv(95, 67%, 47%)
CMYKcmyk(38.3%, 0%, 66.7%, 52.9%)
CIE-LABlab(45.69, -30.47, 37.80)
CIE-LCHlch(45.69, 48.55, 128.88°)
OKLaboklab(52.15% -0.0849 0.0871)
OKLCHoklch(52.15% 0.122 134.3)
XYZxyz(9.9233, 15.0415, 4.3875)
Luminance0.1504 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7828 #562878
analogous
#727828 #4A7828 #28782E
triadic
#4A7828 #284A78 #78284A
tetradic
#4A7828 #287278 #562878 #782E28
square
#4A7828 #287278 #562878 #782E28
split-complementary
#4A7828 #2E2878 #782872
monochromatic
#111C09 #2E4A19 #4A7828 #66A637 #85C654

Accessibility & contrast

On white

5.24
#4A7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#4A7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7828
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7828#FFFFFF#000000##FFFFFF
##4A78281.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1E
Deuteranopia (green-blind)
#766B2E
Tritanopia (blue-blind)
#4A7367
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4a7828;
/* rgb */ color: rgb(74, 120, 40);
/* oklch */ color: oklch(52.2% 0.122 134.3);
Tailwind
colors: {
  custom: {
    50: '#809f66',
    500: '#4a7828',
    950: '#000000',
  },
}
SCSS
$custom: #4a7828;
$custom-light: #809f66;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7828",
  "rgb": {
    "r": 74,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 94.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52152,
    "c": 0.12165,
    "h": 134.3
  },
  "luminance": 0.15042
}

Semantic roles & 50–950 ramp

primary
#4A7828
secondary
#8552AA
accent
#4EDA9E
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0A0E06
muted
#7C7E7A

Preview Lab

Preview with #4A7828

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

Preview Lab → · Contrast checker → · Palette generator →

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