#787B20#787B20

#787B20 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.111 H 111.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#787B20
RGBrgb(120, 123, 32)
HSLhsl(62, 59%, 30%)
HSVhsv(62, 74%, 48%)
CMYKcmyk(2.4%, 0%, 74%, 51.8%)
CIE-LABlab(49.81, -12.94, 46.46)
CIE-LCHlch(49.81, 48.23, 105.57°)
OKLaboklab(56.29% -0.0403 0.103)
OKLCHoklch(56.29% 0.111 111.4)
XYZxyz(15.0899, 18.2637, 4.0966)
Luminance0.1826 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B20 #23207B
analogous
#7B5020 #787B20 #4A7B20
triadic
#787B20 #20787B #7B2078
tetradic
#787B20 #207B50 #23207B #7B204A
square
#787B20 #207B50 #23207B #7B204A
split-complementary
#787B20 #204A7B #50207B
monochromatic
#191A07 #494A13 #787B20 #A7AC2D #CACF46

Accessibility & contrast

On white

4.51
#787B20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#787B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B20
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B20#FFFFFF#000000##000000
##787B201.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#85750F
Deuteranopia (green-blind)
#857827
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b20;
/* rgb */ color: rgb(120, 123, 32);
/* oklch */ color: oklch(56.3% 0.111 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a162',
    500: '#787b20',
    950: '#000000',
  },
}
SCSS
$custom: #787b20;
$custom-light: #a2a162;
$custom-dark: #000000;
JSON
{
  "hex": "#787b20",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 32
  },
  "hsl": {
    "h": 61.978,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56292,
    "c": 0.11056,
    "h": 111.4
  },
  "luminance": 0.18263
}

Semantic roles & 50–950 ramp

primary
#787B20
secondary
#4C49AE
accent
#46E24B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #787B20

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

Preview Lab → · Contrast checker → · Palette generator →

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