#787E4C#787E4C

#787E4C is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.6% C 0.071 H 114.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#787E4C
RGBrgb(120, 126, 76)
HSLhsl(67, 25%, 40%)
HSVhsv(67, 40%, 49%)
CMYKcmyk(4.8%, 0%, 39.7%, 50.6%)
CIE-LABlab(51.19, -10.64, 26.47)
CIE-LCHlch(51.19, 28.53, 111.90°)
OKLaboklab(57.55% -0.0292 0.0648)
OKLCHoklch(57.55% 0.071 114.2)
XYZxyz(16.5112, 19.4368, 9.7179)
Luminance0.1944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E4C #524C7E
analogous
#7E6B4C #787E4C #5F7E4C
triadic
#787E4C #4C787E #7E4C78
tetradic
#787E4C #4C7E6B #524C7E #7E4C5F
square
#787E4C #4C7E6B #524C7E #7E4C5F
split-complementary
#787E4C #4C5F7E #6B4C7E
monochromatic
#2F321E #545835 #787E4C #9BA265 #B4B98B

Accessibility & contrast

On white

4.30
#787E4C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#787E4C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E4C
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E4C#FFFFFF#000000##000000
##787E4C1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#857948
Deuteranopia (green-blind)
#847B4E
Tritanopia (blue-blind)
#7E7972
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787e4c;
/* rgb */ color: rgb(120, 126, 76);
/* oklch */ color: oklch(57.6% 0.071 114.2);
Tailwind
colors: {
  custom: {
    50: '#a0a37f',
    500: '#787e4c',
    950: '#000000',
  },
}
SCSS
$custom: #787e4c;
$custom-light: #a0a37f;
$custom-dark: #000000;
JSON
{
  "hex": "#787e4c",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 76
  },
  "hsl": {
    "h": 67.2,
    "s": 24.752,
    "l": 39.608
  },
  "oklch": {
    "l": 0.57552,
    "c": 0.07106,
    "h": 114.2
  },
  "luminance": 0.19437
}

Semantic roles & 50–950 ramp

primary
#787E4C
secondary
#8580A6
accent
#67C171
background
#F9FAF7
surface
#F2F3EE
border
#CCCDC9
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #787E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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