#4C7018#4C7018

#4C7018 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 50.0% C 0.121 H 129.7°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#4C7018
RGBrgb(76, 112, 24)
HSLhsl(85, 65%, 27%)
HSVhsv(85, 79%, 44%)
CMYKcmyk(32.1%, 0%, 78.6%, 56.1%)
CIE-LABlab(43.05, -27.14, 41.81)
CIE-LCHlch(43.05, 49.85, 122.98°)
OKLaboklab(49.99% -0.0773 0.0931)
OKLCHoklch(49.99% 0.121 129.7)
XYZxyz(8.9395, 13.1905, 2.9390)
Luminance0.1319 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7018 #3C1870
analogous
#706818 #4C7018 #207018
triadic
#4C7018 #184C70 #70184C
tetradic
#4C7018 #187068 #3C1870 #701820
square
#4C7018 #187068 #3C1870 #701820
split-complementary
#4C7018 #182070 #681870
monochromatic
#111905 #2A3E0D #4C7018 #6EA223 #90D330

Accessibility & contrast

On white

5.77
#4C7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#4C7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7018
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7018#FFFFFF#000000##FFFFFF
##4C70181.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766705
Deuteranopia (green-blind)
#716521
Tritanopia (blue-blind)
#4E6B5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4c7018;
/* rgb */ color: rgb(76, 112, 24);
/* oklch */ color: oklch(50.0% 0.121 129.7);
Tailwind
colors: {
  custom: {
    50: '#82995c',
    500: '#4c7018',
    950: '#000000',
  },
}
SCSS
$custom: #4c7018;
$custom-light: #82995c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7018",
  "rgb": {
    "r": 76,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 84.545,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.49989,
    "c": 0.12101,
    "h": 129.7
  },
  "luminance": 0.13191
}

Semantic roles & 50–950 ramp

primary
#4C7018
secondary
#693EA5
accent
#40E885
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7018

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

Preview Lab → · Contrast checker → · Palette generator →

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