#787A17#787A17

#787A17 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.0% C 0.115 H 110.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#787A17
RGBrgb(120, 122, 23)
HSLhsl(61, 68%, 28%)
HSVhsv(61, 81%, 48%)
CMYKcmyk(1.6%, 0%, 81.1%, 52.2%)
CIE-LABlab(49.47, -12.82, 49.30)
CIE-LCHlch(49.47, 50.94, 104.57°)
OKLaboklab(56% -0.0407 0.1073)
OKLCHoklch(56% 0.115 110.8)
XYZxyz(14.8605, 17.9744, 3.4971)
Luminance0.1797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A17 #19177A
analogous
#7A4A17 #787A17 #467A17
triadic
#787A17 #17787A #7A1778
tetradic
#787A17 #177A4A #19177A #7A1746
square
#787A17 #177A4A #19177A #7A1746
split-complementary
#787A17 #17467A #4A177A
monochromatic
#191A05 #45470D #787A17 #ABAD21 #D5D933

Accessibility & contrast

On white

4.57
#787A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#787A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A17
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A17#FFFFFF#000000##000000
##787A171.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#857720
Tritanopia (blue-blind)
#817268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a17;
/* rgb */ color: rgb(120, 122, 23);
/* oklch */ color: oklch(56.0% 0.115 110.8);
Tailwind
colors: {
  custom: {
    50: '#a2a05e',
    500: '#787a17',
    950: '#000000',
  },
}
SCSS
$custom: #787a17;
$custom-light: #a2a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#787a17",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 61.212,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55996,
    "c": 0.11474,
    "h": 110.8
  },
  "luminance": 0.17974
}

Semantic roles & 50–950 ramp

primary
#787A17
secondary
#403EAF
accent
#3DEB40
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787A17

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

Preview Lab → · Contrast checker → · Palette generator →

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