#787B19#787B19

#787B19 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.2% C 0.115 H 111.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#787B19
RGBrgb(120, 123, 25)
HSLhsl(62, 66%, 29%)
HSVhsv(62, 80%, 48%)
CMYKcmyk(2.4%, 0%, 79.7%, 51.8%)
CIE-LABlab(49.77, -13.28, 48.93)
CIE-LCHlch(49.77, 50.70, 105.18°)
OKLaboklab(56.25% -0.0419 0.1069)
OKLCHoklch(56.25% 0.115 111.4)
XYZxyz(15.0047, 18.2296, 3.6478)
Luminance0.1823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B19 #1C197B
analogous
#7B4D19 #787B19 #477B19
triadic
#787B19 #19787B #7B1978
tetradic
#787B19 #197B4D #1C197B #7B1947
square
#787B19 #197B4D #1C197B #7B1947
split-complementary
#787B19 #19477B #4D197B
monochromatic
#191905 #46480F #787B19 #AAAE23 #D2D738

Accessibility & contrast

On white

4.52
#787B19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#787B19 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B19
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B19#FFFFFF#000000##000000
##787B191.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#867822
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b19;
/* rgb */ color: rgb(120, 123, 25);
/* oklch */ color: oklch(56.2% 0.115 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a15f',
    500: '#787b19',
    950: '#000000',
  },
}
SCSS
$custom: #787b19;
$custom-light: #a2a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#787b19",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 25
  },
  "hsl": {
    "h": 61.837,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56246,
    "c": 0.11477,
    "h": 111.4
  },
  "luminance": 0.18229
}

Semantic roles & 50–950 ramp

primary
#787B19
secondary
#4440AF
accent
#3FE944
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787B19

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

Preview Lab → · Contrast checker → · Palette generator →

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