#788720#788720

#788720 is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.2% C 0.125 H 117.7°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#788720
RGBrgb(120, 135, 32)
HSLhsl(69, 62%, 33%)
HSVhsv(69, 76%, 53%)
CMYKcmyk(11.1%, 0%, 76.3%, 47.1%)
CIE-LABlab(53.41, -19.31, 49.90)
CIE-LCHlch(53.41, 53.51, 111.15°)
OKLaboklab(59.18% -0.0579 0.1102)
OKLCHoklch(59.18% 0.125 117.7)
XYZxyz(16.6708, 21.4255, 4.6235)
Luminance0.2142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788720 #2F2087
analogous
#876320 #788720 #448720
triadic
#788720 #207887 #872078
tetradic
#788720 #208763 #2F2087 #872044
square
#788720 #208763 #2F2087 #872044
split-complementary
#788720 #204487 #632087
monochromatic
#202409 #4C5614 #788720 #A4B82C #C1D54D

Accessibility & contrast

On white

3.97
#788720 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#788720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788720
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788720#FFFFFF#000000##000000
##7887201.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F09
Deuteranopia (green-blind)
#8F8029
Tritanopia (blue-blind)
#807F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #788720;
/* rgb */ color: rgb(120, 135, 32);
/* oklch */ color: oklch(59.2% 0.125 117.7);
Tailwind
colors: {
  custom: {
    50: '#a2a964',
    500: '#788720',
    950: '#000000',
  },
}
SCSS
$custom: #788720;
$custom-light: #a2a964;
$custom-dark: #000000;
JSON
{
  "hex": "#788720",
  "rgb": {
    "r": 120,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 68.738,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59178,
    "c": 0.12454,
    "h": 117.7
  },
  "luminance": 0.21425
}

Semantic roles & 50–950 ramp

primary
#788720
secondary
#5B4BB8
accent
#43E55B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788720

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

Preview Lab → · Contrast checker → · Palette generator →

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