#787D20#787D20

#787D20 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.113 H 112.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#787D20
RGBrgb(120, 125, 32)
HSLhsl(63, 59%, 31%)
HSVhsv(63, 74%, 49%)
CMYKcmyk(4%, 0%, 74.4%, 51%)
CIE-LABlab(50.41, -14.02, 47.03)
CIE-LCHlch(50.41, 49.08, 106.60°)
OKLaboklab(56.77% -0.0433 0.1042)
OKLCHoklch(56.77% 0.113 112.6)
XYZxyz(15.3405, 18.7649, 4.1801)
Luminance0.1877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D20 #25207D
analogous
#7D5320 #787D20 #497D20
triadic
#787D20 #20787D #7D2078
tetradic
#787D20 #207D53 #25207D #7D2049
square
#787D20 #207D53 #25207D #7D2049
split-complementary
#787D20 #20497D #53207D
monochromatic
#1A1C07 #494C14 #787D20 #A7AE2C #C9D047

Accessibility & contrast

On white

4.42
#787D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#787D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D20
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D20#FFFFFF#000000##000000
##787D201.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770F
Deuteranopia (green-blind)
#877927
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d20;
/* rgb */ color: rgb(120, 125, 32);
/* oklch */ color: oklch(56.8% 0.113 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a263',
    500: '#787d20',
    950: '#000000',
  },
}
SCSS
$custom: #787d20;
$custom-light: #a2a263;
$custom-dark: #000000;
JSON
{
  "hex": "#787d20",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 32
  },
  "hsl": {
    "h": 63.226,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5677,
    "c": 0.11282,
    "h": 112.6
  },
  "luminance": 0.18765
}

Semantic roles & 50–950 ramp

primary
#787D20
secondary
#4E49B0
accent
#45E24E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #787D20

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

Preview Lab → · Contrast checker → · Palette generator →

#787D20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva