#4A7818#4A7818

#4A7818 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.0% C 0.133 H 132.4°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#4A7818
RGBrgb(74, 120, 24)
HSLhsl(89, 67%, 28%)
HSVhsv(89, 80%, 47%)
CMYKcmyk(38.3%, 0%, 80%, 52.9%)
CIE-LABlab(45.57, -31.69, 44.19)
CIE-LCHlch(45.57, 54.38, 125.65°)
OKLaboklab(52.02% -0.0895 0.0981)
OKLCHoklch(52.02% 0.133 132.4)
XYZxyz(9.7053, 14.9543, 3.2391)
Luminance0.1495 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7818 #461878
analogous
#787618 #4A7818 #1A7818
triadic
#4A7818 #184A78 #78184A
tetradic
#4A7818 #187876 #461878 #78181A
square
#4A7818 #187876 #461878 #78181A
split-complementary
#4A7818 #181A78 #761878
monochromatic
#101A05 #2B450E #4A7818 #69AB22 #89D634

Accessibility & contrast

On white

5.26
#4A7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#4A7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7818
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7818#FFFFFF#000000##FFFFFF
##4A78181.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E01
Deuteranopia (green-blind)
#776B22
Tritanopia (blue-blind)
#4B7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4a7818;
/* rgb */ color: rgb(74, 120, 24);
/* oklch */ color: oklch(52.0% 0.133 132.4);
Tailwind
colors: {
  custom: {
    50: '#819f5d',
    500: '#4a7818',
    950: '#000000',
  },
}
SCSS
$custom: #4a7818;
$custom-light: #819f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7818",
  "rgb": {
    "r": 74,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 88.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52016,
    "c": 0.13282,
    "h": 132.4
  },
  "luminance": 0.14955
}

Semantic roles & 50–950 ramp

primary
#4A7818
secondary
#743FAD
accent
#3EEA90
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4A7818

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

Preview Lab → · Contrast checker → · Palette generator →

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