#4C7315#4C7315

#4C7315 is a mid, vivid yellow-green. Relative luminance 0.139; OKLCH L 50.8% C 0.127 H 130.3°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#4C7315
RGBrgb(76, 115, 21)
HSLhsl(85, 69%, 27%)
HSVhsv(85, 82%, 45%)
CMYKcmyk(33.9%, 0%, 81.7%, 54.9%)
CIE-LABlab(44.02, -28.75, 43.78)
CIE-LCHlch(44.02, 52.38, 123.29°)
OKLaboklab(50.77% -0.0819 0.0967)
OKLCHoklch(50.77% 0.127 130.3)
XYZxyz(9.2465, 13.8518, 2.8958)
Luminance0.1385 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7315 #3C1573
analogous
#736B15 #4C7315 #1D7315
triadic
#4C7315 #154C73 #73154C
tetradic
#4C7315 #15736B #3C1573 #73151D
square
#4C7315 #15736B #3C1573 #73151D
split-complementary
#4C7315 #151D73 #6B1573
monochromatic
#111A05 #2A3F0C #4C7315 #6EA71E #90D82A

Accessibility & contrast

On white

5.57
#4C7315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#4C7315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7315
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7315#FFFFFF#000000##FFFFFF
##4C73151.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#73671F
Tritanopia (blue-blind)
#4E6E62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4c7315;
/* rgb */ color: rgb(76, 115, 21);
/* oklch */ color: oklch(50.8% 0.127 130.3);
Tailwind
colors: {
  custom: {
    50: '#829b5b',
    500: '#4c7315',
    950: '#000000',
  },
}
SCSS
$custom: #4c7315;
$custom-light: #829b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7315",
  "rgb": {
    "r": 76,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 84.894,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.50774,
    "c": 0.12674,
    "h": 130.3
  },
  "luminance": 0.13852
}

Semantic roles & 50–950 ramp

primary
#4C7315
secondary
#693BA9
accent
#3CEC85
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7315

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

Preview Lab → · Contrast checker → · Palette generator →

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