#787B14#787B14

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

Color values

HEX#787B14
RGBrgb(120, 123, 20)
HSLhsl(62, 72%, 28%)
HSVhsv(62, 84%, 48%)
CMYKcmyk(2.4%, 0%, 83.7%, 51.8%)
CIE-LABlab(49.75, -13.47, 50.45)
CIE-LCHlch(49.75, 52.22, 104.95°)
OKLaboklab(56.22% -0.0428 0.1092)
OKLCHoklch(56.22% 0.117 111.4)
XYZxyz(14.9555, 18.2099, 3.3887)
Luminance0.1821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B14 #17147B
analogous
#7B4B14 #787B14 #447B14
triadic
#787B14 #14787B #7B1478
tetradic
#787B14 #147B4B #17147B #7B1444
square
#787B14 #147B4B #17147B #7B1444
split-complementary
#787B14 #14447B #4B147B
monochromatic
#1A1A04 #45460B #787B14 #ABB01D #D8DD2D

Accessibility & contrast

On white

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

On black

4.64
#787B14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B14
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B14#FFFFFF#000000##000000
##787B141.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787b14;
/* rgb */ color: rgb(120, 123, 20);
/* oklch */ color: oklch(56.2% 0.117 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a05d',
    500: '#787b14',
    950: '#000000',
  },
}
SCSS
$custom: #787b14;
$custom-light: #a2a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#787b14",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 20
  },
  "hsl": {
    "h": 61.748,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5622,
    "c": 0.11725,
    "h": 111.4
  },
  "luminance": 0.18209
}

Semantic roles & 50–950 ramp

primary
#787B14
secondary
#3E3AB1
accent
#39EF3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787B14

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

Preview Lab → · Contrast checker → · Palette generator →

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