#4A7213#4A7213

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

Color values

HEX#4A7213
RGBrgb(74, 114, 19)
HSLhsl(85, 71%, 26%)
HSVhsv(85, 83%, 45%)
CMYKcmyk(35.1%, 0%, 83.3%, 55.3%)
CIE-LABlab(43.56, -29.18, 43.96)
CIE-LCHlch(43.56, 52.77, 123.58°)
OKLaboklab(50.37% -0.0831 0.0968)
OKLCHoklch(50.37% 0.128 130.7)
XYZxyz(8.9588, 13.5372, 2.7569)
Luminance0.1354 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7213 #3B1372
analogous
#726A13 #4A7213 #1A7213
triadic
#4A7213 #134A72 #72134A
tetradic
#4A7213 #13726A #3B1372 #72131A
square
#4A7213 #13726A #3B1372 #72131A
split-complementary
#4A7213 #131A72 #6A1372
monochromatic
#111A04 #283E0A #4A7213 #6CA61C #8EDB25

Accessibility & contrast

On white

5.66
#4A7213 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4A7213
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7213#FFFFFF#000000##FFFFFF
##4A72131.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a7213;
/* rgb */ color: rgb(74, 114, 19);
/* oklch */ color: oklch(50.4% 0.128 130.7);
Tailwind
colors: {
  custom: {
    50: '#819b5a',
    500: '#4a7213',
    950: '#000000',
  },
}
SCSS
$custom: #4a7213;
$custom-light: #819b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7213",
  "rgb": {
    "r": 74,
    "g": 114,
    "b": 19
  },
  "hsl": {
    "h": 85.263,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.50366,
    "c": 0.12758,
    "h": 130.7
  },
  "luminance": 0.13537
}

Semantic roles & 50–950 ramp

primary
#4A7213
secondary
#6838A9
accent
#3AEE86
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7213

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

Preview Lab → · Contrast checker → · Palette generator →

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