#787B45#787B45

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

Color values

HEX#787B45
RGBrgb(120, 123, 69)
HSLhsl(63, 28%, 38%)
HSVhsv(63, 44%, 48%)
CMYKcmyk(2.4%, 0%, 43.9%, 51.8%)
CIE-LABlab(50.20, -9.84, 29.07)
CIE-LCHlch(50.20, 30.69, 108.70°)
OKLaboklab(56.73% -0.0274 0.0703)
OKLCHoklch(56.73% 0.075 111.3)
XYZxyz(15.9031, 18.5889, 8.3793)
Luminance0.1859 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B45 #48457B
analogous
#7B6345 #787B45 #5D7B45
triadic
#787B45 #45787B #7B4578
tetradic
#787B45 #457B63 #48457B #7B455D
square
#787B45 #457B63 #48457B #7B455D
split-complementary
#787B45 #455D7B #63457B
monochromatic
#2B2D19 #52542F #787B45 #9EA25B #B6B982

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B45#FFFFFF#000000##000000
##787B451.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)
#827741
Deuteranopia (green-blind)
#837848
Tritanopia (blue-blind)
#7E756E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b45;
/* rgb */ color: rgb(120, 123, 69);
/* oklch */ color: oklch(56.7% 0.075 111.3);
Tailwind
colors: {
  custom: {
    50: '#a0a17a',
    500: '#787b45',
    950: '#000000',
  },
}
SCSS
$custom: #787b45;
$custom-light: #a0a17a;
$custom-dark: #000000;
JSON
{
  "hex": "#787b45",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 69
  },
  "hsl": {
    "h": 63.333,
    "s": 28.125,
    "l": 37.647
  },
  "oklch": {
    "l": 0.56727,
    "c": 0.07545,
    "h": 111.3
  },
  "luminance": 0.18589
}

Semantic roles & 50–950 ramp

primary
#787B45
secondary
#7A78A4
accent
#63C469
background
#F9F9F7
surface
#F2F2ED
border
#CCCCC8
text
#0F0E09
muted
#7E7E7B

Preview Lab

Preview with #787B45

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

Preview Lab → · Contrast checker → · Palette generator →

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