#787C48#787C48

#787C48 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.073 H 112.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#787C48
RGBrgb(120, 124, 72)
HSLhsl(65, 27%, 38%)
HSVhsv(65, 42%, 49%)
CMYKcmyk(3.2%, 0%, 41.9%, 51.4%)
CIE-LABlab(50.54, -10.04, 27.85)
CIE-LCHlch(50.54, 29.61, 109.82°)
OKLaboklab(57.01% -0.0278 0.0677)
OKLCHoklch(57.01% 0.073 112.3)
XYZxyz(16.1233, 18.8765, 8.9238)
Luminance0.1888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C48 #4C487C
analogous
#7C6648 #787C48 #5E7C48
triadic
#787C48 #48787C #7C4878
tetradic
#787C48 #487C66 #4C487C #7C485E
square
#787C48 #487C66 #4C487C #7C485E
split-complementary
#787C48 #485E7C #66487C
monochromatic
#2D2F1B #535532 #787C48 #9DA25F #B5B986

Accessibility & contrast

On white

4.40
#787C48 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#787C48 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C48
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C48#FFFFFF#000000##000000
##787C481.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#837844
Deuteranopia (green-blind)
#83794A
Tritanopia (blue-blind)
#7E766F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787c48;
/* rgb */ color: rgb(120, 124, 72);
/* oklch */ color: oklch(57.0% 0.073 112.3);
Tailwind
colors: {
  custom: {
    50: '#a0a17c',
    500: '#787c48',
    950: '#000000',
  },
}
SCSS
$custom: #787c48;
$custom-light: #a0a17c;
$custom-dark: #000000;
JSON
{
  "hex": "#787c48",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 72
  },
  "hsl": {
    "h": 64.615,
    "s": 26.531,
    "l": 38.431
  },
  "oklch": {
    "l": 0.57012,
    "c": 0.07319,
    "h": 112.3
  },
  "luminance": 0.18876
}

Semantic roles & 50–950 ramp

primary
#787C48
secondary
#7E7BA5
accent
#65C36C
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0F09
muted
#7E7E7B

Preview Lab

Preview with #787C48

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

Preview Lab → · Contrast checker → · Palette generator →

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