#4A7215#4A7215

#4A7215 is a mid, vivid yellow-green. Relative luminance 0.135; OKLCH L 50.4% C 0.127 H 130.8°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#4A7215
RGBrgb(74, 114, 21)
HSLhsl(86, 69%, 26%)
HSVhsv(86, 82%, 45%)
CMYKcmyk(35.1%, 0%, 81.6%, 55.3%)
CIE-LABlab(43.57, -29.08, 43.32)
CIE-LCHlch(43.57, 52.18, 123.87°)
OKLaboklab(50.38% -0.0827 0.0958)
OKLCHoklch(50.38% 0.127 130.8)
XYZxyz(8.9766, 13.5443, 2.8507)
Luminance0.1354 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7215 #3D1572
analogous
#726C15 #4A7215 #1C7215
triadic
#4A7215 #154A72 #72154A
tetradic
#4A7215 #15726C #3D1572 #72151C
square
#4A7215 #15726C #3D1572 #72151C
split-complementary
#4A7215 #151C72 #6C1572
monochromatic
#111A05 #283E0B #4A7215 #6CA61F #8DD82A

Accessibility & contrast

On white

5.66
#4A7215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#4A7215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7215
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7215#FFFFFF#000000##FFFFFF
##4A72151.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#72661F
Tritanopia (blue-blind)
#4C6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4a7215;
/* rgb */ color: rgb(74, 114, 21);
/* oklch */ color: oklch(50.4% 0.127 130.8);
Tailwind
colors: {
  custom: {
    50: '#819b5b',
    500: '#4a7215',
    950: '#000000',
  },
}
SCSS
$custom: #4a7215;
$custom-light: #819b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7215",
  "rgb": {
    "r": 74,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 85.806,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.50378,
    "c": 0.12654,
    "h": 130.8
  },
  "luminance": 0.13545
}

Semantic roles & 50–950 ramp

primary
#4A7215
secondary
#6A3BA8
accent
#3CEC88
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7215

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

Preview Lab → · Contrast checker → · Palette generator →

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