#787B2B#787B2B

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

Color values

HEX#787B2B
RGBrgb(120, 123, 43)
HSLhsl(62, 48%, 33%)
HSVhsv(62, 65%, 48%)
CMYKcmyk(2.4%, 0%, 65%, 51.8%)
CIE-LABlab(49.90, -12.26, 41.90)
CIE-LCHlch(49.90, 43.66, 106.31°)
OKLaboklab(56.39% -0.0372 0.0953)
OKLCHoklch(56.39% 0.102 111.3)
XYZxyz(15.2652, 18.3338, 5.0197)
Luminance0.1833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B2B #2E2B7B
analogous
#7B562B #787B2B #507B2B
triadic
#787B2B #2B787B #7B2B78
tetradic
#787B2B #2B7B56 #2E2B7B #7B2B50
square
#787B2B #2B7B56 #2E2B7B #7B2B50
split-complementary
#787B2B #2B507B #562B7B
monochromatic
#20200B #4C4E1B #787B2B #A4A83B #C2C65B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B2B#FFFFFF#000000##000000
##787B2B1.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)
#847621
Deuteranopia (green-blind)
#857830
Tritanopia (blue-blind)
#80746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b2b;
/* rgb */ color: rgb(120, 123, 43);
/* oklch */ color: oklch(56.4% 0.102 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a169',
    500: '#787b2b',
    950: '#000000',
  },
}
SCSS
$custom: #787b2b;
$custom-light: #a1a169;
$custom-dark: #000000;
JSON
{
  "hex": "#787b2b",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 43
  },
  "hsl": {
    "h": 62.25,
    "s": 48.193,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56386,
    "c": 0.10228,
    "h": 111.3
  },
  "luminance": 0.18333
}

Semantic roles & 50–950 ramp

primary
#787B2B
secondary
#5A56AB
accent
#50D855
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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