#788620#788620

#788620 is a mid, vivid yellow. Relative luminance 0.211; OKLCH L 58.9% C 0.123 H 117.3°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#788620
RGBrgb(120, 134, 32)
HSLhsl(68, 61%, 33%)
HSVhsv(68, 76%, 53%)
CMYKcmyk(10.4%, 0%, 76.1%, 47.5%)
CIE-LABlab(53.11, -18.79, 49.62)
CIE-LCHlch(53.11, 53.05, 110.74°)
OKLaboklab(58.94% -0.0565 0.1096)
OKLCHoklch(58.94% 0.123 117.3)
XYZxyz(16.5319, 21.1477, 4.5772)
Luminance0.2115 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788620 #2E2086
analogous
#866120 #788620 #458620
triadic
#788620 #207886 #862078
tetradic
#788620 #208661 #2E2086 #862045
square
#788620 #208661 #2E2086 #862045
split-complementary
#788620 #204586 #612086
monochromatic
#202308 #4C5514 #788620 #A4B72C #C2D44C

Accessibility & contrast

On white

4.02
#788620 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#788620 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788620
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788620#FFFFFF#000000##000000
##7886201.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0A
Deuteranopia (green-blind)
#8E7F29
Tritanopia (blue-blind)
#807E73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #788620;
/* rgb */ color: rgb(120, 134, 32);
/* oklch */ color: oklch(58.9% 0.123 117.3);
Tailwind
colors: {
  custom: {
    50: '#a2a964',
    500: '#788620',
    950: '#000000',
  },
}
SCSS
$custom: #788620;
$custom-light: #a2a964;
$custom-dark: #000000;
JSON
{
  "hex": "#788620",
  "rgb": {
    "r": 120,
    "g": 134,
    "b": 32
  },
  "hsl": {
    "h": 68.235,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58935,
    "c": 0.12335,
    "h": 117.3
  },
  "luminance": 0.21148
}

Semantic roles & 50–950 ramp

primary
#788620
secondary
#5A4BB7
accent
#43E559
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #788620

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

Preview Lab → · Contrast checker → · Palette generator →

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