#4F7B22#4F7B22

#4F7B22 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.2% C 0.128 H 132.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#4F7B22
RGBrgb(79, 123, 34)
HSLhsl(90, 57%, 31%)
HSVhsv(90, 72%, 48%)
CMYKcmyk(35.8%, 0%, 72.4%, 51.8%)
CIE-LABlab(46.90, -30.48, 41.78)
CIE-LCHlch(46.90, 51.72, 126.11°)
OKLaboklab(53.2% -0.0858 0.0946)
OKLCHoklch(53.2% 0.128 132.2)
XYZxyz(10.5960, 15.9433, 4.0321)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7B22 #4E227B
analogous
#7B7A22 #4F7B22 #227B22
triadic
#4F7B22 #224F7B #7B224F
tetradic
#4F7B22 #227B7A #4E227B #7B2222
square
#4F7B22 #227B7A #4E227B #7B2222
split-complementary
#4F7B22 #22227B #7A227B
monochromatic
#111B07 #304B15 #4F7B22 #6EAB2F #8CCD4A

Accessibility & contrast

On white

5.01
#4F7B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#4F7B22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7B22
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7B22#FFFFFF#000000##FFFFFF
##4F7B221.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807114
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#507669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4f7b22;
/* rgb */ color: rgb(79, 123, 34);
/* oklch */ color: oklch(53.2% 0.128 132.2);
Tailwind
colors: {
  custom: {
    50: '#84a163',
    500: '#4f7b22',
    950: '#000000',
  },
}
SCSS
$custom: #4f7b22;
$custom-light: #84a163;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7b22",
  "rgb": {
    "r": 79,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 89.663,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53196,
    "c": 0.12768,
    "h": 132.2
  },
  "luminance": 0.15944
}

Semantic roles & 50–950 ramp

primary
#4F7B22
secondary
#7C4BAE
accent
#48E093
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F05
muted
#7C7E7A

Preview Lab

Preview with #4F7B22

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

Preview Lab → · Contrast checker → · Palette generator →

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