#788520#788520

#788520 is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.7% C 0.122 H 116.8°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#788520
RGBrgb(120, 133, 32)
HSLhsl(68, 61%, 32%)
HSVhsv(68, 76%, 52%)
CMYKcmyk(9.8%, 0%, 75.9%, 47.8%)
CIE-LABlab(52.81, -18.27, 49.33)
CIE-LCHlch(52.81, 52.60, 110.32°)
OKLaboklab(58.69% -0.0551 0.109)
OKLCHoklch(58.69% 0.122 116.8)
XYZxyz(16.3944, 20.8726, 4.5314)
Luminance0.2087 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788520 #2D2085
analogous
#856020 #788520 #458520
triadic
#788520 #207885 #852078
tetradic
#788520 #208560 #2D2085 #852045
square
#788520 #208560 #2D2085 #852045
split-complementary
#788520 #204585 #602085
monochromatic
#1F2208 #4B5414 #788520 #A5B62C #C2D44C

Accessibility & contrast

On white

4.06
#788520 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#788520 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788520
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788520#FFFFFF#000000##000000
##7885201.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E0A
Deuteranopia (green-blind)
#8D7F29
Tritanopia (blue-blind)
#807D72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #788520;
/* rgb */ color: rgb(120, 133, 32);
/* oklch */ color: oklch(58.7% 0.122 116.8);
Tailwind
colors: {
  custom: {
    50: '#a2a864',
    500: '#788520',
    950: '#000000',
  },
}
SCSS
$custom: #788520;
$custom-light: #a2a864;
$custom-dark: #000000;
JSON
{
  "hex": "#788520",
  "rgb": {
    "r": 120,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 67.723,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58694,
    "c": 0.12215,
    "h": 116.8
  },
  "luminance": 0.20872
}

Semantic roles & 50–950 ramp

primary
#788520
secondary
#584AB7
accent
#43E458
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #788520

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

Preview Lab → · Contrast checker → · Palette generator →

#788520 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva