#788A1A#788A1A

#788A1A is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 59.9% C 0.131 H 118.9°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#788A1A
RGBrgb(120, 138, 26)
HSLhsl(70, 68%, 32%)
HSVhsv(70, 81%, 54%)
CMYKcmyk(13%, 0%, 81.2%, 45.9%)
CIE-LABlab(54.29, -21.13, 52.69)
CIE-LCHlch(54.29, 56.76, 111.85°)
OKLaboklab(59.87% -0.0635 0.1151)
OKLCHoklch(59.87% 0.131 118.9)
XYZxyz(17.0210, 22.2447, 4.3741)
Luminance0.2225 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788A1A #2C1A8A
analogous
#8A641A #788A1A #408A1A
triadic
#788A1A #1A788A #8A1A78
tetradic
#788A1A #1A8A64 #2C1A8A #8A1A40
square
#788A1A #1A8A64 #2C1A8A #8A1A40
split-complementary
#788A1A #1A408A #641A8A
monochromatic
#1E2307 #4B5710 #788A1A #A5BD24 #C3DC43

Accessibility & contrast

On white

3.85
#788A1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#788A1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788A1A
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788A1A#FFFFFF#000000##000000
##788A1A1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#928225
Tritanopia (blue-blind)
#808276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #788a1a;
/* rgb */ color: rgb(120, 138, 26);
/* oklch */ color: oklch(59.9% 0.131 118.9);
Tailwind
colors: {
  custom: {
    50: '#a2ac62',
    500: '#788a1a',
    950: '#000000',
  },
}
SCSS
$custom: #788a1a;
$custom-light: #a2ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#788a1a",
  "rgb": {
    "r": 120,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 69.643,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59871,
    "c": 0.13139,
    "h": 118.9
  },
  "luminance": 0.22245
}

Semantic roles & 50–950 ramp

primary
#788A1A
secondary
#5743BD
accent
#3DEB59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788A1A

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

Preview Lab → · Contrast checker → · Palette generator →

#788A1A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva