#788020#788020

#788020 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.5% C 0.116 H 114.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#788020
RGBrgb(120, 128, 32)
HSLhsl(65, 60%, 31%)
HSVhsv(65, 75%, 50%)
CMYKcmyk(6.3%, 0%, 75%, 49.8%)
CIE-LABlab(51.31, -15.63, 47.90)
CIE-LCHlch(51.31, 50.38, 108.07°)
OKLaboklab(57.49% -0.0477 0.106)
OKLCHoklch(57.49% 0.116 114.2)
XYZxyz(15.7261, 19.5360, 4.3086)
Luminance0.1954 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788020 #282080
analogous
#805820 #788020 #488020
triadic
#788020 #207880 #802078
tetradic
#788020 #208058 #282080 #802048
square
#788020 #208058 #282080 #802048
split-complementary
#788020 #204880 #582080
monochromatic
#1C1E08 #4A4F14 #788020 #A6B12C #C6D149

Accessibility & contrast

On white

4.28
#788020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#788020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788020
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788020#FFFFFF#000000##000000
##7880201.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A790D
Deuteranopia (green-blind)
#897B28
Tritanopia (blue-blind)
#80786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #788020;
/* rgb */ color: rgb(120, 128, 32);
/* oklch */ color: oklch(57.5% 0.116 114.2);
Tailwind
colors: {
  custom: {
    50: '#a2a463',
    500: '#788020',
    950: '#000000',
  },
}
SCSS
$custom: #788020;
$custom-light: #a2a463;
$custom-dark: #000000;
JSON
{
  "hex": "#788020",
  "rgb": {
    "r": 120,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 65,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57489,
    "c": 0.11627,
    "h": 114.2
  },
  "luminance": 0.19536
}

Semantic roles & 50–950 ramp

primary
#788020
secondary
#5249B3
accent
#45E352
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #788020

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

Preview Lab → · Contrast checker → · Palette generator →

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