#787D48#787D48

#787D48 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.2% C 0.075 H 113.2°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#787D48
RGBrgb(120, 125, 72)
HSLhsl(66, 27%, 39%)
HSVhsv(66, 42%, 49%)
CMYKcmyk(4%, 0%, 42.4%, 51%)
CIE-LABlab(50.84, -10.59, 28.23)
CIE-LCHlch(50.84, 30.15, 110.56°)
OKLaboklab(57.25% -0.0293 0.0686)
OKLCHoklch(57.25% 0.075 113.2)
XYZxyz(16.2492, 19.1284, 8.9658)
Luminance0.1913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D48 #4D487D
analogous
#7D6748 #787D48 #5D7D48
triadic
#787D48 #48787D #7D4878
tetradic
#787D48 #487D67 #4D487D #7D485D
square
#787D48 #487D67 #4D487D #7D485D
split-complementary
#787D48 #485D7D #67487D
monochromatic
#2D2F1B #535632 #787D48 #9DA35F #B5B986

Accessibility & contrast

On white

4.35
#787D48 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#787D48 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D48
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D48#FFFFFF#000000##000000
##787D481.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#847844
Deuteranopia (green-blind)
#847A4A
Tritanopia (blue-blind)
#7E7770
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787d48;
/* rgb */ color: rgb(120, 125, 72);
/* oklch */ color: oklch(57.2% 0.075 113.2);
Tailwind
colors: {
  custom: {
    50: '#a0a27c',
    500: '#787d48',
    950: '#000000',
  },
}
SCSS
$custom: #787d48;
$custom-light: #a0a27c;
$custom-dark: #000000;
JSON
{
  "hex": "#787d48",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 72
  },
  "hsl": {
    "h": 65.66,
    "s": 26.904,
    "l": 38.627
  },
  "oklch": {
    "l": 0.57247,
    "c": 0.07457,
    "h": 113.2
  },
  "luminance": 0.19128
}

Semantic roles & 50–950 ramp

primary
#787D48
secondary
#7F7CA5
accent
#65C36D
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0F09
muted
#7E7E7B

Preview Lab

Preview with #787D48

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

Preview Lab → · Contrast checker → · Palette generator →

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