#787B21#787B21

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

Color values

HEX#787B21
RGBrgb(120, 123, 33)
HSLhsl(62, 58%, 31%)
HSVhsv(62, 73%, 48%)
CMYKcmyk(2.4%, 0%, 73.2%, 51.8%)
CIE-LABlab(49.82, -12.89, 46.07)
CIE-LCHlch(49.82, 47.84, 105.63°)
OKLaboklab(56.3% -0.04 0.1024)
OKLCHoklch(56.3% 0.11 111.4)
XYZxyz(15.1037, 18.2692, 4.1692)
Luminance0.1827 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B21 #24217B
analogous
#7B5121 #787B21 #4B7B21
triadic
#787B21 #21787B #7B2178
tetradic
#787B21 #217B51 #24217B #7B214B
square
#787B21 #217B51 #24217B #7B214B
split-complementary
#787B21 #214B7B #51217B
monochromatic
#1A1A07 #494B14 #787B21 #A7AB2E #CACE48

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B21#FFFFFF#000000##000000
##787B211.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)
#857511
Deuteranopia (green-blind)
#857828
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b21;
/* rgb */ color: rgb(120, 123, 33);
/* oklch */ color: oklch(56.3% 0.110 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a163',
    500: '#787b21',
    950: '#000000',
  },
}
SCSS
$custom: #787b21;
$custom-light: #a2a163;
$custom-dark: #000000;
JSON
{
  "hex": "#787b21",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 33
  },
  "hsl": {
    "h": 62,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56299,
    "c": 0.10989,
    "h": 111.4
  },
  "luminance": 0.18269
}

Semantic roles & 50–950 ramp

primary
#787B21
secondary
#4D4AAE
accent
#47E14C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787B21

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

Preview Lab → · Contrast checker → · Palette generator →

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