#4A7F12#4A7F12

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

Color values

HEX#4A7F12
RGBrgb(74, 127, 18)
HSLhsl(89, 75%, 28%)
HSVhsv(89, 86%, 50%)
CMYKcmyk(41.7%, 0%, 85.8%, 50.2%)
CIE-LABlab(47.85, -35.14, 48.13)
CIE-LCHlch(47.85, 59.59, 126.13°)
OKLaboklab(53.87% -0.0992 0.1054)
OKLCHoklch(53.87% 0.145 133.3)
XYZxyz(10.5224, 16.6777, 3.2368)
Luminance0.1668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7F12 #47127F
analogous
#7F7D12 #4A7F12 #147F12
triadic
#4A7F12 #124A7F #7F124A
tetradic
#4A7F12 #127F7D #47127F #7F1214
square
#4A7F12 #127F7D #47127F #7F1214
split-complementary
#4A7F12 #12147F #7D127F
monochromatic
#101B04 #2B490A #4A7F12 #69B51A #88E12B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A7F12#FFFFFF#000000##FFFFFF
##4A7F121.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)
#7D7020
Tritanopia (blue-blind)
#4A7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4a7f12;
/* rgb */ color: rgb(74, 127, 18);
/* oklch */ color: oklch(53.9% 0.145 133.3);
Tailwind
colors: {
  custom: {
    50: '#82a45c',
    500: '#4a7f12',
    950: '#000000',
  },
}
SCSS
$custom: #4a7f12;
$custom-light: #82a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7f12",
  "rgb": {
    "r": 74,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 89.174,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53872,
    "c": 0.14476,
    "h": 133.3
  },
  "luminance": 0.16678
}

Semantic roles & 50–950 ramp

primary
#4A7F12
secondary
#7538B5
accent
#36F291
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4A7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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