#4A7B22#4A7B22

#4A7B22 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 52.9% C 0.130 H 134.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#4A7B22
RGBrgb(74, 123, 34)
HSLhsl(93, 57%, 31%)
HSVhsv(93, 72%, 48%)
CMYKcmyk(39.8%, 0%, 72.4%, 51.8%)
CIE-LABlab(46.63, -32.37, 41.42)
CIE-LCHlch(46.63, 52.57, 128.01°)
OKLaboklab(52.9% -0.0906 0.0939)
OKLCHoklch(52.9% 0.13 134)
XYZxyz(10.1955, 15.7368, 4.0134)
Luminance0.1574 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7B22 #53227B
analogous
#767B22 #4A7B22 #227B26
triadic
#4A7B22 #224A7B #7B224A
tetradic
#4A7B22 #22767B #53227B #7B2622
square
#4A7B22 #22767B #53227B #7B2622
split-complementary
#4A7B22 #26227B #7B2276
monochromatic
#101B07 #2D4B15 #4A7B22 #67AB2F #85CD4A

Accessibility & contrast

On white

5.06
#4A7B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#4A7B22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7B22
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7B22#FFFFFF#000000##FFFFFF
##4A7B221.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807114
Deuteranopia (green-blind)
#796D2A
Tritanopia (blue-blind)
#4A7669
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4a7b22;
/* rgb */ color: rgb(74, 123, 34);
/* oklch */ color: oklch(52.9% 0.130 134.0);
Tailwind
colors: {
  custom: {
    50: '#81a163',
    500: '#4a7b22',
    950: '#000000',
  },
}
SCSS
$custom: #4a7b22;
$custom-light: #81a163;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7b22",
  "rgb": {
    "r": 74,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 93.034,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.529,
    "c": 0.13047,
    "h": 134
  },
  "luminance": 0.15737
}

Semantic roles & 50–950 ramp

primary
#4A7B22
secondary
#814BAE
accent
#48E09C
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F05
muted
#7C7E7A

Preview Lab

Preview with #4A7B22

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

Preview Lab → · Contrast checker → · Palette generator →

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