#787E20#787E20

#787E20 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.114 H 113.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#787E20
RGBrgb(120, 126, 32)
HSLhsl(64, 59%, 31%)
HSVhsv(64, 75%, 49%)
CMYKcmyk(4.8%, 0%, 74.6%, 50.6%)
CIE-LABlab(50.71, -14.56, 47.32)
CIE-LCHlch(50.71, 49.51, 107.10°)
OKLaboklab(57.01% -0.0448 0.1048)
OKLCHoklch(57.01% 0.114 113.1)
XYZxyz(15.4678, 19.0194, 4.2225)
Luminance0.1902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E20 #26207E
analogous
#7E5520 #787E20 #497E20
triadic
#787E20 #20787E #7E2078
tetradic
#787E20 #207E55 #26207E #7E2049
square
#787E20 #207E55 #26207E #7E2049
split-complementary
#787E20 #20497E #55207E
monochromatic
#1B1C07 #4A4D14 #787E20 #A6AF2C #C8D048

Accessibility & contrast

On white

4.37
#787E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#787E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E20
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E20#FFFFFF#000000##000000
##787E201.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780E
Deuteranopia (green-blind)
#887A27
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e20;
/* rgb */ color: rgb(120, 126, 32);
/* oklch */ color: oklch(57.0% 0.114 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a363',
    500: '#787e20',
    950: '#000000',
  },
}
SCSS
$custom: #787e20;
$custom-light: #a2a363;
$custom-dark: #000000;
JSON
{
  "hex": "#787e20",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 63.83,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.57009,
    "c": 0.11397,
    "h": 113.1
  },
  "luminance": 0.19019
}

Semantic roles & 50–950 ramp

primary
#787E20
secondary
#5049B1
accent
#45E34F
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787E20

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

Preview Lab → · Contrast checker → · Palette generator →

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