#787D2B#787D2B

#787D2B is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.9% C 0.105 H 112.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#787D2B
RGBrgb(120, 125, 43)
HSLhsl(64, 49%, 33%)
HSVhsv(64, 66%, 49%)
CMYKcmyk(4%, 0%, 65.6%, 51%)
CIE-LABlab(50.49, -13.35, 42.53)
CIE-LCHlch(50.49, 44.58, 107.42°)
OKLaboklab(56.86% -0.0402 0.0966)
OKLCHoklch(56.86% 0.105 112.6)
XYZxyz(15.5158, 18.8350, 5.1032)
Luminance0.1883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D2B #302B7D
analogous
#7D592B #787D2B #4F7D2B
triadic
#787D2B #2B787D #7D2B78
tetradic
#787D2B #2B7D59 #302B7D #7D2B4F
square
#787D2B #2B7D59 #302B7D #7D2B4F
split-complementary
#787D2B #2B4F7D #592B7D
monochromatic
#21220C #4C4F1B #787D2B #A4AB3B #C0C75C

Accessibility & contrast

On white

4.41
#787D2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#787D2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D2B
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D2B#FFFFFF#000000##000000
##787D2B1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#867720
Deuteranopia (green-blind)
#867930
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d2b;
/* rgb */ color: rgb(120, 125, 43);
/* oklch */ color: oklch(56.9% 0.105 112.6);
Tailwind
colors: {
  custom: {
    50: '#a1a269',
    500: '#787d2b',
    950: '#000000',
  },
}
SCSS
$custom: #787d2b;
$custom-light: #a1a269;
$custom-dark: #000000;
JSON
{
  "hex": "#787d2b",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 63.659,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56862,
    "c": 0.10465,
    "h": 112.6
  },
  "luminance": 0.18835
}

Semantic roles & 50–950 ramp

primary
#787D2B
secondary
#5C57AD
accent
#4FD858
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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