#4B7918#4B7918

#4B7918 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.3% C 0.134 H 132.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#4B7918
RGBrgb(75, 121, 24)
HSLhsl(88, 67%, 28%)
HSVhsv(88, 80%, 47%)
CMYKcmyk(38%, 0%, 80.2%, 52.5%)
CIE-LABlab(45.96, -31.77, 44.57)
CIE-LCHlch(45.96, 54.73, 125.48°)
OKLaboklab(52.35% -0.0898 0.0989)
OKLCHoklch(52.35% 0.134 132.2)
XYZxyz(9.9038, 15.2361, 3.2830)
Luminance0.1524 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7918 #461879
analogous
#797618 #4B7918 #1A7918
triadic
#4B7918 #184B79 #79184B
tetradic
#4B7918 #187976 #461879 #79181A
square
#4B7918 #187976 #461879 #79181A
split-complementary
#4B7918 #181A79 #761879
monochromatic
#101A05 #2B460E #4B7918 #6BAC22 #8AD735

Accessibility & contrast

On white

5.19
#4B7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#4B7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7918
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7918#FFFFFF#000000##FFFFFF
##4B79181.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#786C22
Tritanopia (blue-blind)
#4C7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4b7918;
/* rgb */ color: rgb(75, 121, 24);
/* oklch */ color: oklch(52.3% 0.134 132.2);
Tailwind
colors: {
  custom: {
    50: '#82a05d',
    500: '#4b7918',
    950: '#000000',
  },
}
SCSS
$custom: #4b7918;
$custom-light: #82a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7918",
  "rgb": {
    "r": 75,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 88.454,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52345,
    "c": 0.13358,
    "h": 132.2
  },
  "luminance": 0.15237
}

Semantic roles & 50–950 ramp

primary
#4B7918
secondary
#743FAE
accent
#3EEA8F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4B7918

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

Preview Lab → · Contrast checker → · Palette generator →

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