#4D781C#4D781C

#4D781C is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.2% C 0.129 H 131.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#4D781C
RGBrgb(77, 120, 28)
HSLhsl(88, 62%, 29%)
HSVhsv(88, 77%, 47%)
CMYKcmyk(35.8%, 0%, 76.7%, 52.9%)
CIE-LABlab(45.76, -30.28, 42.98)
CIE-LCHlch(45.76, 52.58, 125.17°)
OKLaboklab(52.23% -0.0856 0.0962)
OKLCHoklch(52.23% 0.129 131.7)
XYZxyz(9.9865, 15.0942, 3.4857)
Luminance0.1510 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D781C #471C78
analogous
#78751C #4D781C #1F781C
triadic
#4D781C #1C4D78 #781C4D
tetradic
#4D781C #1C7875 #471C78 #781C1F
square
#4D781C #1C7875 #471C78 #781C1F
split-complementary
#4D781C #1C1F78 #751C78
monochromatic
#101906 #2D4610 #4D781C #6DAA28 #8CD23D

Accessibility & contrast

On white

5.23
#4D781C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#4D781C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D781C
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D781C#FFFFFF#000000##FFFFFF
##4D781C1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E0A
Deuteranopia (green-blind)
#786B25
Tritanopia (blue-blind)
#4E7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4d781c;
/* rgb */ color: rgb(77, 120, 28);
/* oklch */ color: oklch(52.2% 0.129 131.7);
Tailwind
colors: {
  custom: {
    50: '#839f5f',
    500: '#4d781c',
    950: '#000000',
  },
}
SCSS
$custom: #4d781c;
$custom-light: #839f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d781c",
  "rgb": {
    "r": 77,
    "g": 120,
    "b": 28
  },
  "hsl": {
    "h": 88.043,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52225,
    "c": 0.12876,
    "h": 131.7
  },
  "luminance": 0.15095
}

Semantic roles & 50–950 ramp

primary
#4D781C
secondary
#7444AC
accent
#43E58F
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4D781C

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

Preview Lab → · Contrast checker → · Palette generator →

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