#787A4E#787A4E

#787A4E is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.7% C 0.063 H 110.5°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#787A4E
RGBrgb(120, 122, 78)
HSLhsl(63, 22%, 39%)
HSVhsv(63, 36%, 48%)
CMYKcmyk(1.6%, 0%, 36.1%, 52.2%)
CIE-LABlab(50.05, -8.17, 23.88)
CIE-LCHlch(50.05, 25.24, 108.88°)
OKLaboklab(56.65% -0.022 0.0589)
OKLCHoklch(56.65% 0.063 110.5)
XYZxyz(16.0805, 18.4624, 9.9227)
Luminance0.1846 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A4E #504E7A
analogous
#7A664E #787A4E #627A4E
triadic
#787A4E #4E787A #7A4E78
tetradic
#787A4E #4E7A66 #504E7A #7A4E62
square
#787A4E #4E7A66 #504E7A #7A4E62
split-complementary
#787A4E #4E627A #664E7A
monochromatic
#2F2F1E #535536 #787A4E #9B9E67 #B4B68D

Accessibility & contrast

On white

4.48
#787A4E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#787A4E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A4E
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A4E#FFFFFF#000000##000000
##787A4E1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#81764B
Deuteranopia (green-blind)
#817850
Tritanopia (blue-blind)
#7E756F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787a4e;
/* rgb */ color: rgb(120, 122, 78);
/* oklch */ color: oklch(56.7% 0.063 110.5);
Tailwind
colors: {
  custom: {
    50: '#9fa080',
    500: '#787a4e',
    950: '#000000',
  },
}
SCSS
$custom: #787a4e;
$custom-light: #9fa080;
$custom-dark: #000000;
JSON
{
  "hex": "#787a4e",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 78
  },
  "hsl": {
    "h": 62.727,
    "s": 22,
    "l": 39.216
  },
  "oklch": {
    "l": 0.56654,
    "c": 0.06288,
    "h": 110.5
  },
  "luminance": 0.18462
}

Semantic roles & 50–950 ramp

primary
#787A4E
secondary
#8381A3
accent
#69BF6D
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E0A
muted
#7E7E7C

Preview Lab

Preview with #787A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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