#787B46#787B46

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

Color values

HEX#787B46
RGBrgb(120, 123, 70)
HSLhsl(63, 27%, 38%)
HSVhsv(63, 43%, 48%)
CMYKcmyk(2.4%, 0%, 43.1%, 51.8%)
CIE-LABlab(50.22, -9.72, 28.54)
CIE-LCHlch(50.22, 30.15, 108.81°)
OKLaboklab(56.74% -0.027 0.0692)
OKLCHoklch(56.74% 0.074 111.3)
XYZxyz(15.9344, 18.6015, 8.5442)
Luminance0.1860 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B46 #49467B
analogous
#7B6346 #787B46 #5D7B46
triadic
#787B46 #46787B #7B4678
tetradic
#787B46 #467B63 #49467B #7B465D
square
#787B46 #467B63 #49467B #7B465D
split-complementary
#787B46 #465D7B #63467B
monochromatic
#2C2D1A #525430 #787B46 #9EA25C #B5B883

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #787b46;
/* rgb */ color: rgb(120, 123, 70);
/* oklch */ color: oklch(56.7% 0.074 111.3);
Tailwind
colors: {
  custom: {
    50: '#a0a17a',
    500: '#787b46',
    950: '#000000',
  },
}
SCSS
$custom: #787b46;
$custom-light: #a0a17a;
$custom-dark: #000000;
JSON
{
  "hex": "#787b46",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 70
  },
  "hsl": {
    "h": 63.396,
    "s": 27.461,
    "l": 37.843
  },
  "oklch": {
    "l": 0.56744,
    "c": 0.07425,
    "h": 111.3
  },
  "luminance": 0.18601
}

Semantic roles & 50–950 ramp

primary
#787B46
secondary
#7B79A4
accent
#64C469
background
#F9F9F7
surface
#F2F2ED
border
#CCCCC8
text
#0F0E09
muted
#7E7E7B

Preview Lab

Preview with #787B46

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

Preview Lab → · Contrast checker → · Palette generator →

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