#787B2E#787B2E

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

Color values

HEX#787B2E
RGBrgb(120, 123, 46)
HSLhsl(62, 46%, 33%)
HSVhsv(62, 63%, 48%)
CMYKcmyk(2.4%, 0%, 62.6%, 51.8%)
CIE-LABlab(49.93, -12.04, 40.55)
CIE-LCHlch(49.93, 42.30, 106.54°)
OKLaboklab(56.42% -0.0362 0.0929)
OKLCHoklch(56.42% 0.1 111.3)
XYZxyz(15.3222, 18.3566, 5.3203)
Luminance0.1836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B2E #312E7B
analogous
#7B572E #787B2E #517B2E
triadic
#787B2E #2E787B #7B2E78
tetradic
#787B2E #2E7B57 #312E7B #7B2E51
square
#787B2E #2E7B57 #312E7B #7B2E51
split-complementary
#787B2E #2E517B #572E7B
monochromatic
#21220D #4D4E1D #787B2E #A3A83F #C0C360

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B2E#FFFFFF#000000##000000
##787B2E1.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)
#847625
Deuteranopia (green-blind)
#857833
Tritanopia (blue-blind)
#80746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b2e;
/* rgb */ color: rgb(120, 123, 46);
/* oklch */ color: oklch(56.4% 0.100 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a16a',
    500: '#787b2e',
    950: '#000000',
  },
}
SCSS
$custom: #787b2e;
$custom-light: #a1a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#787b2e",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 46
  },
  "hsl": {
    "h": 62.338,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56417,
    "c": 0.09967,
    "h": 111.3
  },
  "luminance": 0.18356
}

Semantic roles & 50–950 ramp

primary
#787B2E
secondary
#5E5BAA
accent
#53D558
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #787B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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