#787B17#787B17

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

Color values

HEX#787B17
RGBrgb(120, 123, 23)
HSLhsl(62, 68%, 29%)
HSVhsv(62, 81%, 48%)
CMYKcmyk(2.4%, 0%, 81.3%, 51.8%)
CIE-LABlab(49.76, -13.36, 49.56)
CIE-LCHlch(49.76, 51.33, 105.08°)
OKLaboklab(56.24% -0.0423 0.1078)
OKLCHoklch(56.24% 0.116 111.4)
XYZxyz(14.9839, 18.2213, 3.5382)
Luminance0.1822 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B17 #1A177B
analogous
#7B4C17 #787B17 #467B17
triadic
#787B17 #17787B #7B1778
tetradic
#787B17 #177B4C #1A177B #7B1746
square
#787B17 #177B4C #1A177B #7B1746
split-complementary
#787B17 #17467B #4C177B
monochromatic
#191A05 #46470D #787B17 #AAAF21 #D4D933

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B17#FFFFFF#000000##000000
##787B171.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)
#867820
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b17;
/* rgb */ color: rgb(120, 123, 23);
/* oklch */ color: oklch(56.2% 0.116 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a15e',
    500: '#787b17',
    950: '#000000',
  },
}
SCSS
$custom: #787b17;
$custom-light: #a2a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#787b17",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 61.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56235,
    "c": 0.11582,
    "h": 111.4
  },
  "luminance": 0.18221
}

Semantic roles & 50–950 ramp

primary
#787B17
secondary
#413EB0
accent
#3CEB42
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787B17

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

Preview Lab → · Contrast checker → · Palette generator →

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