#4A7F18#4A7F18

#4A7F18 is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 53.9% C 0.142 H 133.7°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#4A7F18
RGBrgb(74, 127, 24)
HSLhsl(91, 68%, 30%)
HSVhsv(91, 81%, 50%)
CMYKcmyk(41.7%, 0%, 81.1%, 50.2%)
CIE-LABlab(47.88, -34.84, 46.36)
CIE-LCHlch(47.88, 57.99, 126.92°)
OKLaboklab(53.9% -0.098 0.1027)
OKLCHoklch(53.9% 0.142 133.7)
XYZxyz(10.5781, 16.7000, 3.5300)
Luminance0.1670 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7F18 #4D187F
analogous
#7E7F18 #4A7F18 #187F1A
triadic
#4A7F18 #184A7F #7F184A
tetradic
#4A7F18 #187E7F #4D187F #7F1A18
square
#4A7F18 #187E7F #4D187F #7F1A18
split-complementary
#4A7F18 #1A187F #7F187E
monochromatic
#0F1A05 #2C4C0E #4A7F18 #68B222 #86D938

Accessibility & contrast

On white

4.84
#4A7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#4A7F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7F18
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7F18#FFFFFF#000000##FFFFFF
##4A7F181.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7D7023
Tritanopia (blue-blind)
#4A7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4a7f18;
/* rgb */ color: rgb(74, 127, 24);
/* oklch */ color: oklch(53.9% 0.142 133.7);
Tailwind
colors: {
  custom: {
    50: '#82a45e',
    500: '#4a7f18',
    950: '#000000',
  },
}
SCSS
$custom: #4a7f18;
$custom-light: #82a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7f18",
  "rgb": {
    "r": 74,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 90.874,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53904,
    "c": 0.14194,
    "h": 133.7
  },
  "luminance": 0.16701
}

Semantic roles & 50–950 ramp

primary
#4A7F18
secondary
#7B3FB3
accent
#3DEB96
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4A7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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