#4A7915#4A7915

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

Color values

HEX#4A7915
RGBrgb(74, 121, 21)
HSLhsl(88, 70%, 28%)
HSVhsv(88, 83%, 47%)
CMYKcmyk(38.8%, 0%, 82.6%, 52.5%)
CIE-LABlab(45.89, -32.32, 45.47)
CIE-LCHlch(45.89, 55.79, 125.40°)
OKLaboklab(52.27% -0.0914 0.1003)
OKLCHoklch(52.27% 0.136 132.4)
XYZxyz(9.7967, 15.1843, 3.1240)
Luminance0.1519 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7915 #441579
analogous
#797615 #4A7915 #187915
triadic
#4A7915 #154A79 #79154A
tetradic
#4A7915 #157976 #441579 #791518
square
#4A7915 #157976 #441579 #791518
split-complementary
#4A7915 #151879 #761579
monochromatic
#101A05 #2A450C #4A7915 #6AAD1E #89DB2E

Accessibility & contrast

On white

5.20
#4A7915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4A7915
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7915#FFFFFF#000000##FFFFFF
##4A79151.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#786B20
Tritanopia (blue-blind)
#4B7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4a7915;
/* rgb */ color: rgb(74, 121, 21);
/* oklch */ color: oklch(52.3% 0.136 132.4);
Tailwind
colors: {
  custom: {
    50: '#81a05c',
    500: '#4a7915',
    950: '#000000',
  },
}
SCSS
$custom: #4a7915;
$custom-light: #81a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7915",
  "rgb": {
    "r": 74,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 88.2,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52268,
    "c": 0.13572,
    "h": 132.4
  },
  "luminance": 0.15185
}

Semantic roles & 50–950 ramp

primary
#4A7915
secondary
#713BAF
accent
#3BED8F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7915

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

Preview Lab → · Contrast checker → · Palette generator →

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