#4B7E12#4B7E12

#4B7E12 is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.7% C 0.143 H 132.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#4B7E12
RGBrgb(75, 126, 18)
HSLhsl(88, 75%, 28%)
HSVhsv(88, 86%, 49%)
CMYKcmyk(40.5%, 0%, 85.7%, 50.6%)
CIE-LABlab(47.57, -34.33, 47.90)
CIE-LCHlch(47.57, 58.93, 125.62°)
OKLaboklab(53.66% -0.0971 0.1049)
OKLCHoklch(53.66% 0.143 132.8)
XYZxyz(10.4715, 16.4607, 3.1976)
Luminance0.1646 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7E12 #45127E
analogous
#7E7B12 #4B7E12 #157E12
triadic
#4B7E12 #124B7E #7E124B
tetradic
#4B7E12 #127E7B #45127E #7E1215
square
#4B7E12 #127E7B #45127E #7E1215
split-complementary
#4B7E12 #12157E #7B127E
monochromatic
#101B04 #2B480A #4B7E12 #6BB41A #8AE12A

Accessibility & contrast

On white

4.89
#4B7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#4B7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7E12
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7E12#FFFFFF#000000##FFFFFF
##4B7E121.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847300
Deuteranopia (green-blind)
#7D6F1F
Tritanopia (blue-blind)
#4B796B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4b7e12;
/* rgb */ color: rgb(75, 126, 18);
/* oklch */ color: oklch(53.7% 0.143 132.8);
Tailwind
colors: {
  custom: {
    50: '#82a45c',
    500: '#4b7e12',
    950: '#000000',
  },
}
SCSS
$custom: #4b7e12;
$custom-light: #82a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7e12",
  "rgb": {
    "r": 75,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 88.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53658,
    "c": 0.14295,
    "h": 132.8
  },
  "luminance": 0.16461
}

Semantic roles & 50–950 ramp

primary
#4B7E12
secondary
#7238B4
accent
#36F28F
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4B7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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