#787D2A#787D2A

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

Color values

HEX#787D2A
RGBrgb(120, 125, 42)
HSLhsl(64, 50%, 33%)
HSVhsv(64, 66%, 49%)
CMYKcmyk(4%, 0%, 66.4%, 51%)
CIE-LABlab(50.49, -13.42, 42.97)
CIE-LCHlch(50.49, 45.02, 107.34°)
OKLaboklab(56.85% -0.0405 0.0974)
OKLCHoklch(56.85% 0.105 112.6)
XYZxyz(15.4977, 18.8278, 5.0078)
Luminance0.1883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D2A #2F2A7D
analogous
#7D582A #787D2A #4F7D2A
triadic
#787D2A #2A787D #7D2A78
tetradic
#787D2A #2A7D58 #2F2A7D #7D2A4F
square
#787D2A #2A7D58 #2F2A7D #7D2A4F
split-complementary
#787D2A #2A4F7D #582A7D
monochromatic
#20210B #4C4F1B #787D2A #A4AB39 #C1C85A

Accessibility & contrast

On white

4.41
#787D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#787D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D2A
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D2A#FFFFFF#000000##000000
##787D2A1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#86771F
Deuteranopia (green-blind)
#867930
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d2a;
/* rgb */ color: rgb(120, 125, 42);
/* oklch */ color: oklch(56.9% 0.105 112.6);
Tailwind
colors: {
  custom: {
    50: '#a1a268',
    500: '#787d2a',
    950: '#000000',
  },
}
SCSS
$custom: #787d2a;
$custom-light: #a1a268;
$custom-dark: #000000;
JSON
{
  "hex": "#787d2a",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 63.614,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56852,
    "c": 0.10547,
    "h": 112.6
  },
  "luminance": 0.18827
}

Semantic roles & 50–950 ramp

primary
#787D2A
secondary
#5B56AD
accent
#4FD957
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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