#787F20#787F20

#787F20 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.2% C 0.115 H 113.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#787F20
RGBrgb(120, 127, 32)
HSLhsl(64, 60%, 31%)
HSVhsv(64, 75%, 50%)
CMYKcmyk(5.5%, 0%, 74.8%, 50.2%)
CIE-LABlab(51.01, -15.10, 47.61)
CIE-LCHlch(51.01, 49.94, 107.59°)
OKLaboklab(57.25% -0.0463 0.1054)
OKLCHoklch(57.25% 0.115 113.7)
XYZxyz(15.5963, 19.2764, 4.2654)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F20 #27207F
analogous
#7F5620 #787F20 #487F20
triadic
#787F20 #20787F #7F2078
tetradic
#787F20 #207F56 #27207F #7F2048
square
#787F20 #207F56 #27207F #7F2048
split-complementary
#787F20 #20487F #56207F
monochromatic
#1C1D07 #4A4E14 #787F20 #A6B02C #C7D148

Accessibility & contrast

On white

4.33
#787F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#787F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F20
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F20#FFFFFF#000000##000000
##787F201.004.334.864.86
#FFFFFF4.331.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790E
Deuteranopia (green-blind)
#897A28
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787f20;
/* rgb */ color: rgb(120, 127, 32);
/* oklch */ color: oklch(57.2% 0.115 113.7);
Tailwind
colors: {
  custom: {
    50: '#a2a463',
    500: '#787f20',
    950: '#000000',
  },
}
SCSS
$custom: #787f20;
$custom-light: #a2a463;
$custom-dark: #000000;
JSON
{
  "hex": "#787f20",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 64.421,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.57249,
    "c": 0.11511,
    "h": 113.7
  },
  "luminance": 0.19276
}

Semantic roles & 50–950 ramp

primary
#787F20
secondary
#5149B2
accent
#45E351
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787F20

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

Preview Lab → · Contrast checker → · Palette generator →

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