#4C7B18#4C7B18

#4C7B18 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.9% C 0.136 H 132.3°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#4C7B18
RGBrgb(76, 123, 24)
HSLhsl(88, 67%, 29%)
HSVhsv(88, 80%, 48%)
CMYKcmyk(38.2%, 0%, 80.5%, 51.8%)
CIE-LABlab(46.67, -32.30, 45.26)
CIE-LCHlch(46.67, 55.61, 125.51°)
OKLaboklab(52.94% -0.0913 0.1003)
OKLCHoklch(52.94% 0.136 132.3)
XYZxyz(10.2282, 15.7679, 3.3686)
Luminance0.1577 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7B18 #47187B
analogous
#7B7918 #4C7B18 #1B7B18
triadic
#4C7B18 #184C7B #7B184C
tetradic
#4C7B18 #187B79 #47187B #7B181B
square
#4C7B18 #187B79 #47187B #7B181B
split-complementary
#4C7B18 #181B7B #79187B
monochromatic
#101A05 #2C480E #4C7B18 #6CAE22 #8BD836

Accessibility & contrast

On white

5.06
#4C7B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#4C7B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7B18
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7B18#FFFFFF#000000##FFFFFF
##4C7B181.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#7A6D23
Tritanopia (blue-blind)
#4D7669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4c7b18;
/* rgb */ color: rgb(76, 123, 24);
/* oklch */ color: oklch(52.9% 0.136 132.3);
Tailwind
colors: {
  custom: {
    50: '#83a15e',
    500: '#4c7b18',
    950: '#000000',
  },
}
SCSS
$custom: #4c7b18;
$custom-light: #83a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7b18",
  "rgb": {
    "r": 76,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 88.485,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52942,
    "c": 0.13564,
    "h": 132.3
  },
  "luminance": 0.15768
}

Semantic roles & 50–950 ramp

primary
#4C7B18
secondary
#753FB0
accent
#3EEA90
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4C7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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