#787A2A#787A2A

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

Color values

HEX#787A2A
RGBrgb(120, 122, 42)
HSLhsl(62, 49%, 32%)
HSVhsv(62, 66%, 48%)
CMYKcmyk(1.6%, 0%, 65.6%, 52.2%)
CIE-LABlab(49.59, -11.79, 42.03)
CIE-LCHlch(49.59, 43.65, 105.66°)
OKLaboklab(56.14% -0.0359 0.0954)
OKLCHoklch(56.14% 0.102 110.6)
XYZxyz(15.1236, 18.0797, 4.8831)
Luminance0.1808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A2A #2C2A7A
analogous
#7A542A #787A2A #507A2A
triadic
#787A2A #2A787A #7A2A78
tetradic
#787A2A #2A7A54 #2C2A7A #7A2A50
square
#787A2A #2A7A54 #2C2A7A #7A2A50
split-complementary
#787A2A #2A507A #542A7A
monochromatic
#1E1F0B #4B4C1A #787A2A #A5A83A #C3C659

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787A2A#FFFFFF#000000##000000
##787A2A1.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)
#837520
Deuteranopia (green-blind)
#84772F
Tritanopia (blue-blind)
#807269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a2a;
/* rgb */ color: rgb(120, 122, 42);
/* oklch */ color: oklch(56.1% 0.102 110.6);
Tailwind
colors: {
  custom: {
    50: '#a1a068',
    500: '#787a2a',
    950: '#000000',
  },
}
SCSS
$custom: #787a2a;
$custom-light: #a1a068;
$custom-dark: #000000;
JSON
{
  "hex": "#787a2a",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 42
  },
  "hsl": {
    "h": 61.5,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56139,
    "c": 0.10194,
    "h": 110.6
  },
  "luminance": 0.18079
}

Semantic roles & 50–950 ramp

primary
#787A2A
secondary
#5755AB
accent
#4FD853
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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