#4A7C18#4A7C18

#4A7C18 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.1% C 0.138 H 133.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#4A7C18
RGBrgb(74, 124, 24)
HSLhsl(90, 68%, 29%)
HSVhsv(90, 81%, 49%)
CMYKcmyk(40.3%, 0%, 80.6%, 51.4%)
CIE-LABlab(46.89, -33.50, 45.44)
CIE-LCHlch(46.89, 56.45, 126.41°)
OKLaboklab(53.1% -0.0944 0.1007)
OKLCHoklch(53.1% 0.138 133.2)
XYZxyz(10.1964, 15.9366, 3.4028)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7C18 #4A187C
analogous
#7C7C18 #4A7C18 #187C18
triadic
#4A7C18 #184A7C #7C184A
tetradic
#4A7C18 #187C7C #4A187C #7C1818
square
#4A7C18 #187C7C #4A187C #7C1818
split-complementary
#4A7C18 #18187C #7C187C
monochromatic
#0F1A05 #2B490E #4A7C18 #69AF22 #87D836

Accessibility & contrast

On white

5.02
#4A7C18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#4A7C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7C18
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7C18#FFFFFF#000000##FFFFFF
##4A7C181.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#7B6E23
Tritanopia (blue-blind)
#4A7769
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4a7c18;
/* rgb */ color: rgb(74, 124, 24);
/* oklch */ color: oklch(53.1% 0.138 133.2);
Tailwind
colors: {
  custom: {
    50: '#81a25e',
    500: '#4a7c18',
    950: '#000000',
  },
}
SCSS
$custom: #4a7c18;
$custom-light: #81a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7c18",
  "rgb": {
    "r": 74,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 90,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53095,
    "c": 0.13805,
    "h": 133.2
  },
  "luminance": 0.15937
}

Semantic roles & 50–950 ramp

primary
#4A7C18
secondary
#783FB1
accent
#3DEA94
background
#F8FAF5
surface
#EFF3E9
border
#CACDC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4A7C18

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

Preview Lab → · Contrast checker → · Palette generator →

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