#4A7212#4A7212

#4A7212 is a mid, vivid yellow-green. Relative luminance 0.135; OKLCH L 50.4% C 0.128 H 130.6°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#4A7212
RGBrgb(74, 114, 18)
HSLhsl(85, 73%, 26%)
HSVhsv(85, 84%, 45%)
CMYKcmyk(35.1%, 0%, 84.2%, 55.3%)
CIE-LABlab(43.56, -29.23, 44.27)
CIE-LCHlch(43.56, 53.05, 123.44°)
OKLaboklab(50.36% -0.0833 0.0973)
OKLCHoklch(50.36% 0.128 130.6)
XYZxyz(8.9505, 13.5338, 2.7129)
Luminance0.1353 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7212 #3A1272
analogous
#726A12 #4A7212 #1A7212
triadic
#4A7212 #124A72 #72124A
tetradic
#4A7212 #12726A #3A1272 #72121A
square
#4A7212 #12726A #3A1272 #72121A
split-complementary
#4A7212 #121A72 #6A1272
monochromatic
#111A04 #283D0A #4A7212 #6CA71A #8FDC23

Accessibility & contrast

On white

5.67
#4A7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#4A7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7212
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7212#FFFFFF#000000##FFFFFF
##4A72121.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#72661D
Tritanopia (blue-blind)
#4C6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4a7212;
/* rgb */ color: rgb(74, 114, 18);
/* oklch */ color: oklch(50.4% 0.128 130.6);
Tailwind
colors: {
  custom: {
    50: '#819b5a',
    500: '#4a7212',
    950: '#000000',
  },
}
SCSS
$custom: #4a7212;
$custom-light: #819b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7212",
  "rgb": {
    "r": 74,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 85,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.50361,
    "c": 0.12808,
    "h": 130.6
  },
  "luminance": 0.13534
}

Semantic roles & 50–950 ramp

primary
#4A7212
secondary
#6637A9
accent
#38EF85
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7212

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

Preview Lab → · Contrast checker → · Palette generator →

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