#4A7612#4A7612

#4A7612 is a mid, vivid yellow-green. Relative luminance 0.145; OKLCH L 51.4% C 0.133 H 131.5°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#4A7612
RGBrgb(74, 118, 18)
HSLhsl(86, 74%, 27%)
HSVhsv(86, 85%, 46%)
CMYKcmyk(37.3%, 0%, 84.7%, 53.7%)
CIE-LABlab(44.88, -31.09, 45.47)
CIE-LCHlch(44.88, 55.08, 124.37°)
OKLaboklab(51.44% -0.0883 0.0998)
OKLCHoklch(51.44% 0.133 131.5)
XYZxyz(9.4116, 14.4560, 2.8666)
Luminance0.1446 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7612 #3E1276
analogous
#767012 #4A7612 #187612
triadic
#4A7612 #124A76 #76124A
tetradic
#4A7612 #127670 #3E1276 #761218
square
#4A7612 #127670 #3E1276 #761218
split-complementary
#4A7612 #121876 #701276
monochromatic
#111B04 #29410A #4A7612 #6BAB1A #8CDE25

Accessibility & contrast

On white

5.40
#4A7612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#4A7612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7612
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7612#FFFFFF#000000##FFFFFF
##4A76121.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6C00
Deuteranopia (green-blind)
#76691E
Tritanopia (blue-blind)
#4B7164
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #4a7612;
/* rgb */ color: rgb(74, 118, 18);
/* oklch */ color: oklch(51.4% 0.133 131.5);
Tailwind
colors: {
  custom: {
    50: '#819e5a',
    500: '#4a7612',
    950: '#000000',
  },
}
SCSS
$custom: #4a7612;
$custom-light: #819e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7612",
  "rgb": {
    "r": 74,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 86.4,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.51441,
    "c": 0.13328,
    "h": 131.5
  },
  "luminance": 0.14456
}

Semantic roles & 50–950 ramp

primary
#4A7612
secondary
#6B37AD
accent
#38F089
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7612

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

Preview Lab → · Contrast checker → · Palette generator →

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