#787C20#787C20

#787C20 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.112 H 112.0°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#787C20
RGBrgb(120, 124, 32)
HSLhsl(63, 59%, 31%)
HSVhsv(63, 74%, 49%)
CMYKcmyk(3.2%, 0%, 74.2%, 51.4%)
CIE-LABlab(50.11, -13.48, 46.74)
CIE-LCHlch(50.11, 48.65, 106.09°)
OKLaboklab(56.53% -0.0418 0.1036)
OKLCHoklch(56.53% 0.112 112)
XYZxyz(15.2146, 18.5130, 4.1381)
Luminance0.1851 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C20 #24207C
analogous
#7C5220 #787C20 #4A7C20
triadic
#787C20 #20787C #7C2078
tetradic
#787C20 #207C52 #24207C #7C204A
square
#787C20 #207C52 #24207C #7C204A
split-complementary
#787C20 #204A7C #52207C
monochromatic
#1A1B07 #494B13 #787C20 #A7AD2D #CACF47

Accessibility & contrast

On white

4.47
#787C20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#787C20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C20
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C20#FFFFFF#000000##000000
##787C201.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#86760F
Deuteranopia (green-blind)
#867827
Tritanopia (blue-blind)
#81746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c20;
/* rgb */ color: rgb(120, 124, 32);
/* oklch */ color: oklch(56.5% 0.112 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a163',
    500: '#787c20',
    950: '#000000',
  },
}
SCSS
$custom: #787c20;
$custom-light: #a2a163;
$custom-dark: #000000;
JSON
{
  "hex": "#787c20",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 32
  },
  "hsl": {
    "h": 62.609,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56531,
    "c": 0.11169,
    "h": 112
  },
  "luminance": 0.18513
}

Semantic roles & 50–950 ramp

primary
#787C20
secondary
#4D49AF
accent
#46E24C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #787C20

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

Preview Lab → · Contrast checker → · Palette generator →

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