#78981B#78981B

#78981B is a light, vivid yellow-green. Relative luminance 0.265; OKLCH L 63.3% C 0.148 H 123.8°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#78981B
RGBrgb(120, 152, 27)
HSLhsl(75, 70%, 35%)
HSVhsv(75, 82%, 60%)
CMYKcmyk(21.1%, 0%, 82.2%, 40.4%)
CIE-LABlab(58.54, -28.04, 56.19)
CIE-LCHlch(58.54, 62.80, 116.52°)
OKLaboklab(63.3% -0.0823 0.1227)
OKLCHoklch(63.3% 0.148 123.8)
XYZxyz(19.1720, 26.5285, 5.1472)
Luminance0.2653 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78981B #3B1B98
analogous
#98791B #78981B #3A981B
triadic
#78981B #1B7898 #981B78
tetradic
#78981B #1B9879 #3B1B98 #981B3A
square
#78981B #1B9879 #3B1B98 #981B3A
split-complementary
#78981B #1B3A98 #791B98
monochromatic
#263009 #4F6412 #78981B #A1CC24 #BAE04E

Accessibility & contrast

On white

3.33
#78981B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#78981B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #78981B
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78981B#FFFFFF#000000##000000
##78981B1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E00
Deuteranopia (green-blind)
#9D8C29
Tritanopia (blue-blind)
#7E9081
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #78981b;
/* rgb */ color: rgb(120, 152, 27);
/* oklch */ color: oklch(63.3% 0.148 123.8);
Tailwind
colors: {
  custom: {
    50: '#a3b664',
    500: '#78981b',
    950: '#000000',
  },
}
SCSS
$custom: #78981b;
$custom-light: #a3b664;
$custom-dark: #000000;
JSON
{
  "hex": "#78981b",
  "rgb": {
    "r": 120,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 75.36,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63304,
    "c": 0.14771,
    "h": 123.8
  },
  "luminance": 0.26529
}

Semantic roles & 50–950 ramp

primary
#78981B
secondary
#6B4DC2
accent
#3BED69
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #78981B

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

Preview Lab → · Contrast checker → · Palette generator →

#78981B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva