#787E52#787E52

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

Color values

HEX#787E52
RGBrgb(120, 126, 82)
HSLhsl(68, 21%, 41%)
HSVhsv(68, 35%, 49%)
CMYKcmyk(4.8%, 0%, 34.9%, 50.6%)
CIE-LABlab(51.29, -9.85, 23.25)
CIE-LCHlch(51.29, 25.25, 112.96°)
OKLaboklab(57.67% -0.0265 0.0576)
OKLCHoklch(57.67% 0.063 114.7)
XYZxyz(16.7296, 19.5241, 10.8682)
Luminance0.1952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E52 #58527E
analogous
#7E6E52 #787E52 #627E52
triadic
#787E52 #52787E #7E5278
tetradic
#787E52 #527E6E #58527E #7E5262
square
#787E52 #527E6E #58527E #7E5262
split-complementary
#787E52 #52627E #6E527E
monochromatic
#313422 #55593A #787E52 #99A06D #B3B892

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E52#FFFFFF#000000##000000
##787E521.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)
#847A4F
Deuteranopia (green-blind)
#847B54
Tritanopia (blue-blind)
#7D7973
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787e52;
/* rgb */ color: rgb(120, 126, 82);
/* oklch */ color: oklch(57.7% 0.063 114.7);
Tailwind
colors: {
  custom: {
    50: '#9fa383',
    500: '#787e52',
    950: '#000000',
  },
}
SCSS
$custom: #787e52;
$custom-light: #9fa383;
$custom-dark: #000000;
JSON
{
  "hex": "#787e52",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 82
  },
  "hsl": {
    "h": 68.182,
    "s": 21.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.57665,
    "c": 0.06341,
    "h": 114.7
  },
  "luminance": 0.19524
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787E52

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

Preview Lab → · Contrast checker → · Palette generator →

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