#787E51#787E51

#787E51 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.065 H 114.7°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#787E51
RGBrgb(120, 126, 81)
HSLhsl(68, 22%, 41%)
HSVhsv(68, 36%, 49%)
CMYKcmyk(4.8%, 0%, 35.7%, 50.6%)
CIE-LABlab(51.28, -9.99, 23.79)
CIE-LCHlch(51.28, 25.80, 112.78°)
OKLaboklab(57.65% -0.027 0.0588)
OKLCHoklch(57.65% 0.065 114.7)
XYZxyz(16.6918, 19.5090, 10.6693)
Luminance0.1951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E51 #57517E
analogous
#7E6D51 #787E51 #617E51
triadic
#787E51 #51787E #7E5178
tetradic
#787E51 #517E6D #57517E #7E5161
square
#787E51 #517E6D #57517E #7E5161
split-complementary
#787E51 #51617E #6D517E
monochromatic
#313321 #555939 #787E51 #99A06C #B3B891

Accessibility & contrast

On white

4.28
#787E51 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#787E51 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E51
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E51#FFFFFF#000000##000000
##787E511.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#847A4E
Deuteranopia (green-blind)
#847B53
Tritanopia (blue-blind)
#7D7973
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787e51;
/* rgb */ color: rgb(120, 126, 81);
/* oklch */ color: oklch(57.6% 0.065 114.7);
Tailwind
colors: {
  custom: {
    50: '#9fa382',
    500: '#787e51',
    950: '#000000',
  },
}
SCSS
$custom: #787e51;
$custom-light: #9fa382;
$custom-dark: #000000;
JSON
{
  "hex": "#787e51",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 81
  },
  "hsl": {
    "h": 68,
    "s": 21.739,
    "l": 40.588
  },
  "oklch": {
    "l": 0.57646,
    "c": 0.06471,
    "h": 114.7
  },
  "luminance": 0.19509
}

Semantic roles & 50–950 ramp

primary
#787E51
secondary
#8A85A5
accent
#6ABE75
background
#F9FAF8
surface
#F2F3EF
border
#CCCDCA
text
#0E0F0A
muted
#7E7F7C

Preview Lab

Preview with #787E51

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

Preview Lab → · Contrast checker → · Palette generator →

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