#4B7D21#4B7D21

#4B7D21 is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.5% C 0.133 H 133.9°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#4B7D21
RGBrgb(75, 125, 33)
HSLhsl(93, 58%, 31%)
HSVhsv(93, 74%, 49%)
CMYKcmyk(40%, 0%, 73.6%, 51%)
CIE-LABlab(47.33, -32.99, 42.56)
CIE-LCHlch(47.33, 53.85, 127.78°)
OKLaboklab(53.49% -0.0924 0.0961)
OKLCHoklch(53.49% 0.133 133.9)
XYZxyz(10.5096, 16.2724, 4.0257)
Luminance0.1627 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7D21 #53217D
analogous
#797D21 #4B7D21 #217D25
triadic
#4B7D21 #214B7D #7D214B
tetradic
#4B7D21 #21797D #53217D #7D2521
square
#4B7D21 #21797D #53217D #7D2521
split-complementary
#4B7D21 #25217D #7D2179
monochromatic
#111C07 #2E4D14 #4B7D21 #68AD2E #86CF49

Accessibility & contrast

On white

4.94
#4B7D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#4B7D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7D21
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7D21#FFFFFF#000000##FFFFFF
##4B7D211.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827312
Deuteranopia (green-blind)
#7B6F2A
Tritanopia (blue-blind)
#4B786B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4b7d21;
/* rgb */ color: rgb(75, 125, 33);
/* oklch */ color: oklch(53.5% 0.133 133.9);
Tailwind
colors: {
  custom: {
    50: '#82a362',
    500: '#4b7d21',
    950: '#000000',
  },
}
SCSS
$custom: #4b7d21;
$custom-light: #82a362;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7d21",
  "rgb": {
    "r": 75,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 92.609,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53486,
    "c": 0.13333,
    "h": 133.9
  },
  "luminance": 0.16273
}

Semantic roles & 50–950 ramp

primary
#4B7D21
secondary
#814AB0
accent
#46E19B
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4B7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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