#788216#788216

#788216 is a mid, vivid yellow. Relative luminance 0.200; OKLCH L 57.9% C 0.124 H 115.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#788216
RGBrgb(120, 130, 22)
HSLhsl(66, 71%, 30%)
HSVhsv(66, 83%, 51%)
CMYKcmyk(7.7%, 0%, 83.1%, 49%)
CIE-LABlab(51.86, -17.13, 51.71)
CIE-LCHlch(51.86, 54.48, 108.33°)
OKLaboklab(57.91% -0.0528 0.1123)
OKLCHoklch(57.91% 0.124 115.2)
XYZxyz(15.8737, 20.0165, 3.7863)
Luminance0.2002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788216 #201682
analogous
#825616 #788216 #428216
triadic
#788216 #167882 #821678
tetradic
#788216 #168256 #201682 #821642
square
#788216 #168256 #201682 #821642
split-complementary
#788216 #164282 #561682
monochromatic
#181A04 #484E0D #788216 #A8B61F #CDDD35

Accessibility & contrast

On white

4.20
#788216 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#788216 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788216
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788216#FFFFFF#000000##000000
##7882161.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8B7C21
Tritanopia (blue-blind)
#807A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #788216;
/* rgb */ color: rgb(120, 130, 22);
/* oklch */ color: oklch(57.9% 0.124 115.2);
Tailwind
colors: {
  custom: {
    50: '#a2a65f',
    500: '#788216',
    950: '#000000',
  },
}
SCSS
$custom: #788216;
$custom-light: #a2a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#788216",
  "rgb": {
    "r": 120,
    "g": 130,
    "b": 22
  },
  "hsl": {
    "h": 65.556,
    "s": 71.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57911,
    "c": 0.12404,
    "h": 115.2
  },
  "luminance": 0.20016
}

Semantic roles & 50–950 ramp

primary
#788216
secondary
#483DB7
accent
#3AEE4B
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788216

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

Preview Lab → · Contrast checker → · Palette generator →

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