#788016#788016

#788016 is a mid, vivid yellow. Relative luminance 0.195; OKLCH L 57.4% C 0.122 H 114.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#788016
RGBrgb(120, 128, 22)
HSLhsl(65, 71%, 29%)
HSVhsv(65, 83%, 50%)
CMYKcmyk(6.3%, 0%, 82.8%, 49.8%)
CIE-LABlab(51.26, -16.08, 51.19)
CIE-LCHlch(51.26, 53.65, 107.44°)
OKLaboklab(57.43% -0.0499 0.1111)
OKLCHoklch(57.43% 0.122 114.2)
XYZxyz(15.6102, 19.4897, 3.6985)
Luminance0.1949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788016 #1E1680
analogous
#805316 #788016 #438016
triadic
#788016 #167880 #801678
tetradic
#788016 #168053 #1E1680 #801643
square
#788016 #168053 #1E1680 #801643
split-complementary
#788016 #164380 #531680
monochromatic
#181A04 #474C0D #788016 #A9B41F #CFDC34

Accessibility & contrast

On white

4.29
#788016 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#788016 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788016
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788016#FFFFFF#000000##000000
##7880161.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7B20
Tritanopia (blue-blind)
#81786D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #788016;
/* rgb */ color: rgb(120, 128, 22);
/* oklch */ color: oklch(57.4% 0.122 114.2);
Tailwind
colors: {
  custom: {
    50: '#a2a45f',
    500: '#788016',
    950: '#000000',
  },
}
SCSS
$custom: #788016;
$custom-light: #a2a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#788016",
  "rgb": {
    "r": 120,
    "g": 128,
    "b": 22
  },
  "hsl": {
    "h": 64.528,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57429,
    "c": 0.12179,
    "h": 114.2
  },
  "luminance": 0.19489
}

Semantic roles & 50–950 ramp

primary
#788016
secondary
#463DB5
accent
#3AED48
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788016

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

Preview Lab → · Contrast checker → · Palette generator →

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