#787B2A#787B2A

#787B2A is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.103 H 111.3°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#787B2A
RGBrgb(120, 123, 42)
HSLhsl(62, 49%, 32%)
HSVhsv(62, 66%, 48%)
CMYKcmyk(2.4%, 0%, 65.9%, 51.8%)
CIE-LABlab(49.89, -12.33, 42.35)
CIE-LCHlch(49.89, 44.11, 106.24°)
OKLaboklab(56.38% -0.0375 0.0961)
OKLCHoklch(56.38% 0.103 111.3)
XYZxyz(15.2470, 18.3265, 4.9242)
Luminance0.1833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B2A #2D2A7B
analogous
#7B552A #787B2A #507B2A
triadic
#787B2A #2A787B #7B2A78
tetradic
#787B2A #2A7B55 #2D2A7B #7B2A50
square
#787B2A #2A7B55 #2D2A7B #7B2A50
split-complementary
#787B2A #2A507B #552A7B
monochromatic
#1F200B #4B4D1A #787B2A #A5A93A #C2C659

Accessibility & contrast

On white

4.50
#787B2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#787B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B2A
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B2A#FFFFFF#000000##000000
##787B2A1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#847620
Deuteranopia (green-blind)
#85782F
Tritanopia (blue-blind)
#80746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b2a;
/* rgb */ color: rgb(120, 123, 42);
/* oklch */ color: oklch(56.4% 0.103 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a168',
    500: '#787b2a',
    950: '#000000',
  },
}
SCSS
$custom: #787b2a;
$custom-light: #a1a168;
$custom-dark: #000000;
JSON
{
  "hex": "#787b2a",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 42
  },
  "hsl": {
    "h": 62.222,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56376,
    "c": 0.10311,
    "h": 111.3
  },
  "luminance": 0.18326
}

Semantic roles & 50–950 ramp

primary
#787B2A
secondary
#5855AC
accent
#4FD954
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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