#787A2C#787A2C

#787A2C is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.100 H 110.6°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#787A2C
RGBrgb(120, 122, 44)
HSLhsl(62, 47%, 33%)
HSVhsv(62, 64%, 48%)
CMYKcmyk(1.6%, 0%, 63.9%, 52.2%)
CIE-LABlab(49.61, -11.64, 41.14)
CIE-LCHlch(49.61, 42.75, 105.80°)
OKLaboklab(56.16% -0.0353 0.0938)
OKLCHoklch(56.16% 0.1 110.6)
XYZxyz(15.1603, 18.0944, 5.0763)
Luminance0.1809 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A2C #2E2C7A
analogous
#7A552C #787A2C #517A2C
triadic
#787A2C #2C787A #7A2C78
tetradic
#787A2C #2C7A55 #2E2C7A #7A2C51
square
#787A2C #2C7A55 #2E2C7A #7A2C51
split-complementary
#787A2C #2C517A #552C7A
monochromatic
#20200C #4C4D1C #787A2C #A4A73C #C2C45C

Accessibility & contrast

On white

4.55
#787A2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#787A2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A2C
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A2C#FFFFFF#000000##000000
##787A2C1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#837523
Deuteranopia (green-blind)
#847731
Tritanopia (blue-blind)
#80736A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a2c;
/* rgb */ color: rgb(120, 122, 44);
/* oklch */ color: oklch(56.2% 0.100 110.6);
Tailwind
colors: {
  custom: {
    50: '#a1a069',
    500: '#787a2c',
    950: '#000000',
  },
}
SCSS
$custom: #787a2c;
$custom-light: #a1a069;
$custom-dark: #000000;
JSON
{
  "hex": "#787a2c",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 44
  },
  "hsl": {
    "h": 61.538,
    "s": 46.988,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56159,
    "c": 0.10024,
    "h": 110.6
  },
  "luminance": 0.18094
}

Semantic roles & 50–950 ramp

primary
#787A2C
secondary
#5A57AA
accent
#51D755
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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