#787C2A#787C2A

#787C2A is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.104 H 112.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#787C2A
RGBrgb(120, 124, 42)
HSLhsl(63, 49%, 33%)
HSVhsv(63, 66%, 49%)
CMYKcmyk(3.2%, 0%, 66.1%, 51.4%)
CIE-LABlab(50.19, -12.88, 42.66)
CIE-LCHlch(50.19, 44.56, 106.79°)
OKLaboklab(56.61% -0.039 0.0967)
OKLCHoklch(56.61% 0.104 112)
XYZxyz(15.3717, 18.5759, 4.9658)
Luminance0.1858 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C2A #2E2A7C
analogous
#7C572A #787C2A #4F7C2A
triadic
#787C2A #2A787C #7C2A78
tetradic
#787C2A #2A7C57 #2E2A7C #7C2A4F
square
#787C2A #2A7C57 #2E2A7C #7C2A4F
split-complementary
#787C2A #2A4F7C #572A7C
monochromatic
#20210B #4C4E1B #787C2A #A4AA39 #C2C759

Accessibility & contrast

On white

4.45
#787C2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#787C2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C2A
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C2A#FFFFFF#000000##000000
##787C2A1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#85761F
Deuteranopia (green-blind)
#86782F
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c2a;
/* rgb */ color: rgb(120, 124, 42);
/* oklch */ color: oklch(56.6% 0.104 112.0);
Tailwind
colors: {
  custom: {
    50: '#a1a168',
    500: '#787c2a',
    950: '#000000',
  },
}
SCSS
$custom: #787c2a;
$custom-light: #a1a168;
$custom-dark: #000000;
JSON
{
  "hex": "#787c2a",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 42
  },
  "hsl": {
    "h": 62.927,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56614,
    "c": 0.10429,
    "h": 112
  },
  "luminance": 0.18576
}

Semantic roles & 50–950 ramp

primary
#787C2A
secondary
#5A55AD
accent
#4FD956
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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