#787B2C#787B2C

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

Color values

HEX#787B2C
RGBrgb(120, 123, 44)
HSLhsl(62, 47%, 33%)
HSVhsv(62, 64%, 48%)
CMYKcmyk(2.4%, 0%, 64.2%, 51.8%)
CIE-LABlab(49.91, -12.19, 41.46)
CIE-LCHlch(49.91, 43.21, 106.38°)
OKLaboklab(56.4% -0.0368 0.0945)
OKLCHoklch(56.4% 0.101 111.3)
XYZxyz(15.2837, 18.3412, 5.1175)
Luminance0.1834 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B2C #2F2C7B
analogous
#7B562C #787B2C #517B2C
triadic
#787B2C #2C787B #7B2C78
tetradic
#787B2C #2C7B56 #2F2C7B #7B2C51
square
#787B2C #2C7B56 #2F2C7B #7B2C51
split-complementary
#787B2C #2C517B #562C7B
monochromatic
#20210C #4C4E1C #787B2C #A4A83C #C1C55D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B2C#FFFFFF#000000##000000
##787B2C1.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)
#847622
Deuteranopia (green-blind)
#857831
Tritanopia (blue-blind)
#80746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b2c;
/* rgb */ color: rgb(120, 123, 44);
/* oklch */ color: oklch(56.4% 0.101 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a169',
    500: '#787b2c',
    950: '#000000',
  },
}
SCSS
$custom: #787b2c;
$custom-light: #a1a169;
$custom-dark: #000000;
JSON
{
  "hex": "#787b2c",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 44
  },
  "hsl": {
    "h": 62.278,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56396,
    "c": 0.10142,
    "h": 111.3
  },
  "luminance": 0.18341
}

Semantic roles & 50–950 ramp

primary
#787B2C
secondary
#5B58AB
accent
#51D756
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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