#787D21#787D21

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

Color values

HEX#787D21
RGBrgb(120, 125, 33)
HSLhsl(63, 58%, 31%)
HSVhsv(63, 74%, 49%)
CMYKcmyk(4%, 0%, 73.6%, 51%)
CIE-LABlab(50.42, -13.97, 46.66)
CIE-LCHlch(50.42, 48.70, 106.67°)
OKLaboklab(56.78% -0.043 0.1036)
OKLCHoklch(56.78% 0.112 112.6)
XYZxyz(15.3543, 18.7705, 4.2528)
Luminance0.1877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D21 #26217D
analogous
#7D5421 #787D21 #4A7D21
triadic
#787D21 #21787D #7D2178
tetradic
#787D21 #217D54 #26217D #7D214A
square
#787D21 #217D54 #26217D #7D214A
split-complementary
#787D21 #214A7D #54217D
monochromatic
#1B1C07 #4A4D14 #787D21 #A6AD2E #C8CF49

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787D21#FFFFFF#000000##000000
##787D211.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)
#877711
Deuteranopia (green-blind)
#877928
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d21;
/* rgb */ color: rgb(120, 125, 33);
/* oklch */ color: oklch(56.8% 0.112 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a263',
    500: '#787d21',
    950: '#000000',
  },
}
SCSS
$custom: #787d21;
$custom-light: #a2a263;
$custom-dark: #000000;
JSON
{
  "hex": "#787d21",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 63.261,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56777,
    "c": 0.11216,
    "h": 112.6
  },
  "luminance": 0.1877
}

Semantic roles & 50–950 ramp

primary
#787D21
secondary
#504AB0
accent
#46E14F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D21

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

Preview Lab → · Contrast checker → · Palette generator →

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