#787A2B#787A2B

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

Color values

HEX#787A2B
RGBrgb(120, 122, 43)
HSLhsl(62, 48%, 32%)
HSVhsv(62, 65%, 48%)
CMYKcmyk(1.6%, 0%, 64.8%, 52.2%)
CIE-LABlab(49.60, -11.71, 41.59)
CIE-LCHlch(49.60, 43.21, 105.73°)
OKLaboklab(56.15% -0.0356 0.0946)
OKLCHoklch(56.15% 0.101 110.6)
XYZxyz(15.1418, 18.0869, 4.9785)
Luminance0.1809 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A2B #2D2B7A
analogous
#7A552B #787A2B #517A2B
triadic
#787A2B #2B787A #7A2B78
tetradic
#787A2B #2B7A55 #2D2B7A #7A2B51
square
#787A2B #2B7A55 #2D2B7A #7A2B51
split-complementary
#787A2B #2B517A #552B7A
monochromatic
#1F1F0B #4B4D1B #787A2B #A5A73B #C2C55A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787A2B#FFFFFF#000000##000000
##787A2B1.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)
#837521
Deuteranopia (green-blind)
#847730
Tritanopia (blue-blind)
#80736A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a2b;
/* rgb */ color: rgb(120, 122, 43);
/* oklch */ color: oklch(56.1% 0.101 110.6);
Tailwind
colors: {
  custom: {
    50: '#a1a068',
    500: '#787a2b',
    950: '#000000',
  },
}
SCSS
$custom: #787a2b;
$custom-light: #a1a068;
$custom-dark: #000000;
JSON
{
  "hex": "#787a2b",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 43
  },
  "hsl": {
    "h": 61.519,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56149,
    "c": 0.1011,
    "h": 110.6
  },
  "luminance": 0.18087
}

Semantic roles & 50–950 ramp

primary
#787A2B
secondary
#5856AB
accent
#50D754
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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