#4B781F#4B781F

#4B781F is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.1% C 0.128 H 132.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#4B781F
RGBrgb(75, 120, 31)
HSLhsl(90, 59%, 30%)
HSVhsv(90, 74%, 47%)
CMYKcmyk(37.5%, 0%, 74.2%, 52.9%)
CIE-LABlab(45.67, -30.85, 41.69)
CIE-LCHlch(45.67, 51.86, 126.50°)
OKLaboklab(52.13% -0.0868 0.094)
OKLCHoklch(52.13% 0.128 132.7)
XYZxyz(9.8653, 15.0273, 3.6768)
Luminance0.1503 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B781F #4C1F78
analogous
#78781F #4B781F #1F7820
triadic
#4B781F #1F4B78 #781F4B
tetradic
#4B781F #1F7878 #4C1F78 #78201F
square
#4B781F #1F7878 #4C1F78 #78201F
split-complementary
#4B781F #201F78 #781F78
monochromatic
#0F1806 #2D4712 #4B781F #69A92C #88CE43

Accessibility & contrast

On white

5.24
#4B781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#4B781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B781F
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B781F#FFFFFF#000000##FFFFFF
##4B781F1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E10
Deuteranopia (green-blind)
#776B27
Tritanopia (blue-blind)
#4C7367
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4b781f;
/* rgb */ color: rgb(75, 120, 31);
/* oklch */ color: oklch(52.1% 0.128 132.7);
Tailwind
colors: {
  custom: {
    50: '#819f61',
    500: '#4b781f',
    950: '#000000',
  },
}
SCSS
$custom: #4b781f;
$custom-light: #819f61;
$custom-dark: #000000;
JSON
{
  "hex": "#4b781f",
  "rgb": {
    "r": 75,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 90.337,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52127,
    "c": 0.1279,
    "h": 132.7
  },
  "luminance": 0.15028
}

Semantic roles & 50–950 ramp

primary
#4B781F
secondary
#7A47AB
accent
#46E295
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4B781F

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

Preview Lab → · Contrast checker → · Palette generator →

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