#4B7915#4B7915

#4B7915 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.3% C 0.135 H 132.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#4B7915
RGBrgb(75, 121, 21)
HSLhsl(88, 70%, 28%)
HSVhsv(88, 83%, 47%)
CMYKcmyk(38%, 0%, 82.6%, 52.5%)
CIE-LABlab(45.94, -31.93, 45.54)
CIE-LCHlch(45.94, 55.62, 125.04°)
OKLaboklab(52.33% -0.0905 0.1004)
OKLCHoklch(52.33% 0.135 132)
XYZxyz(9.8743, 15.2243, 3.1276)
Luminance0.1522 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7915 #431579
analogous
#797515 #4B7915 #197915
triadic
#4B7915 #154B79 #79154B
tetradic
#4B7915 #157975 #431579 #791519
square
#4B7915 #157975 #431579 #791519
split-complementary
#4B7915 #151979 #751579
monochromatic
#101A05 #2B450C #4B7915 #6BAD1E #8BDB2E

Accessibility & contrast

On white

5.19
#4B7915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#4B7915 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7915
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7915#FFFFFF#000000##FFFFFF
##4B79151.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#786C20
Tritanopia (blue-blind)
#4C7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4b7915;
/* rgb */ color: rgb(75, 121, 21);
/* oklch */ color: oklch(52.3% 0.135 132.0);
Tailwind
colors: {
  custom: {
    50: '#82a05c',
    500: '#4b7915',
    950: '#000000',
  },
}
SCSS
$custom: #4b7915;
$custom-light: #82a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7915",
  "rgb": {
    "r": 75,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 87.6,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52327,
    "c": 0.13516,
    "h": 132
  },
  "luminance": 0.15225
}

Semantic roles & 50–950 ramp

primary
#4B7915
secondary
#703BAF
accent
#3BED8D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4B7915

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

Preview Lab → · Contrast checker → · Palette generator →

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