#4B7828#4B7828

#4B7828 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.2% C 0.121 H 133.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#4B7828
RGBrgb(75, 120, 40)
HSLhsl(94, 50%, 31%)
HSVhsv(94, 67%, 47%)
CMYKcmyk(37.5%, 0%, 66.7%, 52.9%)
CIE-LABlab(45.75, -30.10, 37.87)
CIE-LCHlch(45.75, 48.37, 128.47°)
OKLaboklab(52.21% -0.084 0.0872)
OKLCHoklch(52.21% 0.121 133.9)
XYZxyz(10.0009, 15.0816, 4.3912)
Luminance0.1508 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7828 #552878
analogous
#737828 #4B7828 #28782D
triadic
#4B7828 #284B78 #78284B
tetradic
#4B7828 #287378 #552878 #782D28
square
#4B7828 #287378 #552878 #782D28
split-complementary
#4B7828 #2D2878 #782873
monochromatic
#121C09 #2E4A19 #4B7828 #68A637 #86C654

Accessibility & contrast

On white

5.23
#4B7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#4B7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7828
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7828#FFFFFF#000000##FFFFFF
##4B78281.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b7828;
/* rgb */ color: rgb(75, 120, 40);
/* oklch */ color: oklch(52.2% 0.121 133.9);
Tailwind
colors: {
  custom: {
    50: '#819f66',
    500: '#4b7828',
    950: '#000000',
  },
}
SCSS
$custom: #4b7828;
$custom-light: #819f66;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7828",
  "rgb": {
    "r": 75,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 93.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52211,
    "c": 0.12108,
    "h": 133.9
  },
  "luminance": 0.15082
}

Semantic roles & 50–950 ramp

primary
#4B7828
secondary
#8352AA
accent
#4EDA9D
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #4B7828

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

Preview Lab → · Contrast checker → · Palette generator →

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