#787C2B#787C2B

#787C2B is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.103 H 112.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#787C2B
RGBrgb(120, 124, 43)
HSLhsl(63, 49%, 33%)
HSVhsv(63, 65%, 49%)
CMYKcmyk(3.2%, 0%, 65.3%, 51.4%)
CIE-LABlab(50.20, -12.80, 42.22)
CIE-LCHlch(50.20, 44.12, 106.87°)
OKLaboklab(56.62% -0.0387 0.0959)
OKLCHoklch(56.62% 0.103 112)
XYZxyz(15.3899, 18.5831, 5.0612)
Luminance0.1858 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C2B #2F2B7C
analogous
#7C572B #787C2B #4F7C2B
triadic
#787C2B #2B787C #7C2B78
tetradic
#787C2B #2B7C57 #2F2B7C #7C2B4F
square
#787C2B #2B7C57 #2F2B7C #7C2B4F
split-complementary
#787C2B #2B4F7C #572B7C
monochromatic
#20210B #4C4F1B #787C2B #A4A93B #C1C65B

Accessibility & contrast

On white

4.45
#787C2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#787C2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C2B
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C2B#FFFFFF#000000##000000
##787C2B1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#857621
Deuteranopia (green-blind)
#867830
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c2b;
/* rgb */ color: rgb(120, 124, 43);
/* oklch */ color: oklch(56.6% 0.103 112.0);
Tailwind
colors: {
  custom: {
    50: '#a1a169',
    500: '#787c2b',
    950: '#000000',
  },
}
SCSS
$custom: #787c2b;
$custom-light: #a1a169;
$custom-dark: #000000;
JSON
{
  "hex": "#787c2b",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 43
  },
  "hsl": {
    "h": 62.963,
    "s": 48.503,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56624,
    "c": 0.10346,
    "h": 112
  },
  "luminance": 0.18583
}

Semantic roles & 50–950 ramp

primary
#787C2B
secondary
#5B57AC
accent
#50D856
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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