#4C7318#4C7318

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

Color values

HEX#4C7318
RGBrgb(76, 115, 24)
HSLhsl(86, 65%, 27%)
HSVhsv(86, 79%, 45%)
CMYKcmyk(33.9%, 0%, 79.1%, 54.9%)
CIE-LABlab(44.04, -28.58, 42.76)
CIE-LCHlch(44.04, 51.43, 123.75°)
OKLaboklab(50.79% -0.0812 0.0951)
OKLCHoklch(50.79% 0.125 130.5)
XYZxyz(9.2760, 13.8636, 3.0512)
Luminance0.1386 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7318 #3F1873
analogous
#736D18 #4C7318 #1F7318
triadic
#4C7318 #184C73 #73184C
tetradic
#4C7318 #18736D #3F1873 #73181F
square
#4C7318 #18736D #3F1873 #73181F
split-complementary
#4C7318 #181F73 #6D1873
monochromatic
#111905 #2B400D #4C7318 #6DA623 #8ED431

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C7318#FFFFFF#000000##FFFFFF
##4C73181.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)
#796A04
Deuteranopia (green-blind)
#736721
Tritanopia (blue-blind)
#4E6E62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4c7318;
/* rgb */ color: rgb(76, 115, 24);
/* oklch */ color: oklch(50.8% 0.125 130.5);
Tailwind
colors: {
  custom: {
    50: '#829b5d',
    500: '#4c7318',
    950: '#000000',
  },
}
SCSS
$custom: #4c7318;
$custom-light: #829b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7318",
  "rgb": {
    "r": 76,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 85.714,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.50794,
    "c": 0.12505,
    "h": 130.5
  },
  "luminance": 0.13864
}

Semantic roles & 50–950 ramp

primary
#4C7318
secondary
#6C3FA8
accent
#3FE888
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7318

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

Preview Lab → · Contrast checker → · Palette generator →

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