#4C7A18#4C7A18

#4C7A18 is a mid, vivid yellow-green. Relative luminance 0.155; OKLCH L 52.7% C 0.134 H 132.1°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#4C7A18
RGBrgb(76, 122, 24)
HSLhsl(88, 67%, 29%)
HSVhsv(88, 80%, 48%)
CMYKcmyk(37.7%, 0%, 80.3%, 52.2%)
CIE-LABlab(46.34, -31.84, 44.95)
CIE-LCHlch(46.34, 55.09, 125.31°)
OKLaboklab(52.67% -0.0901 0.0997)
OKLCHoklch(52.67% 0.134 132.1)
XYZxyz(10.1048, 15.5211, 3.3274)
Luminance0.1552 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7A18 #46187A
analogous
#7A7718 #4C7A18 #1B7A18
triadic
#4C7A18 #184C7A #7A184C
tetradic
#4C7A18 #187A77 #46187A #7A181B
square
#4C7A18 #187A77 #46187A #7A181B
split-complementary
#4C7A18 #181B7A #77187A
monochromatic
#101A05 #2C470E #4C7A18 #6CAD22 #8BD735

Accessibility & contrast

On white

5.12
#4C7A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#4C7A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7A18
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7A18#FFFFFF#000000##FFFFFF
##4C7A181.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#796D22
Tritanopia (blue-blind)
#4D7568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4c7a18;
/* rgb */ color: rgb(76, 122, 24);
/* oklch */ color: oklch(52.7% 0.134 132.1);
Tailwind
colors: {
  custom: {
    50: '#82a15e',
    500: '#4c7a18',
    950: '#000000',
  },
}
SCSS
$custom: #4c7a18;
$custom-light: #82a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7a18",
  "rgb": {
    "r": 76,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 88.163,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52673,
    "c": 0.13433,
    "h": 132.1
  },
  "luminance": 0.15522
}

Semantic roles & 50–950 ramp

primary
#4C7A18
secondary
#733FAF
accent
#3EEA8F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4C7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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