#787C42#787C42

#787C42 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.9% C 0.080 H 112.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#787C42
RGBrgb(120, 124, 66)
HSLhsl(64, 31%, 37%)
HSVhsv(64, 47%, 49%)
CMYKcmyk(3.2%, 0%, 46.8%, 51.4%)
CIE-LABlab(50.45, -10.73, 31.01)
CIE-LCHlch(50.45, 32.81, 109.08°)
OKLaboklab(56.91% -0.0303 0.0744)
OKLCHoklch(56.91% 0.08 112.1)
XYZxyz(15.9370, 18.8020, 7.9428)
Luminance0.1880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C42 #46427C
analogous
#7C6342 #787C42 #5B7C42
triadic
#787C42 #42787C #7C4278
tetradic
#787C42 #427C63 #46427C #7C425B
square
#787C42 #427C63 #46427C #7C425B
split-complementary
#787C42 #425B7C #63427C
monochromatic
#2B2C17 #51542D #787C42 #9FA457 #B6BA7E

Accessibility & contrast

On white

4.41
#787C42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#787C42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C42
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C42#FFFFFF#000000##000000
##787C421.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#84773D
Deuteranopia (green-blind)
#847945
Tritanopia (blue-blind)
#7F766E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787c42;
/* rgb */ color: rgb(120, 124, 66);
/* oklch */ color: oklch(56.9% 0.080 112.1);
Tailwind
colors: {
  custom: {
    50: '#a0a178',
    500: '#787c42',
    950: '#000000',
  },
}
SCSS
$custom: #787c42;
$custom-light: #a0a178;
$custom-dark: #000000;
JSON
{
  "hex": "#787c42",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 66
  },
  "hsl": {
    "h": 64.138,
    "s": 30.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.56914,
    "c": 0.08032,
    "h": 112.1
  },
  "luminance": 0.18802
}

Semantic roles & 50–950 ramp

primary
#787C42
secondary
#7875A5
accent
#61C768
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F09
muted
#7F7E7B

Preview Lab

Preview with #787C42

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

Preview Lab → · Contrast checker → · Palette generator →

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