#788517#788517

#788517 is a mid, vivid yellow. Relative luminance 0.208; OKLCH L 58.6% C 0.127 H 116.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#788517
RGBrgb(120, 133, 23)
HSLhsl(67, 71%, 31%)
HSVhsv(67, 83%, 52%)
CMYKcmyk(9.8%, 0%, 82.7%, 47.8%)
CIE-LABlab(52.76, -18.67, 52.22)
CIE-LCHlch(52.76, 55.46, 109.67°)
OKLaboklab(58.64% -0.0569 0.1135)
OKLCHoklch(58.64% 0.127 116.6)
XYZxyz(16.2884, 20.8302, 3.9730)
Luminance0.2083 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788517 #241785
analogous
#855B17 #788517 #418517
triadic
#788517 #177885 #851778
tetradic
#788517 #17855B #241785 #851741
square
#788517 #17855B #241785 #851741
split-complementary
#788517 #174185 #5B1785
monochromatic
#1A1D05 #49510E #788517 #A7B920 #CADD3A

Accessibility & contrast

On white

4.07
#788517 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#788517 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788517
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788517#FFFFFF#000000##000000
##7885171.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#807D71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #788517;
/* rgb */ color: rgb(120, 133, 23);
/* oklch */ color: oklch(58.6% 0.127 116.6);
Tailwind
colors: {
  custom: {
    50: '#a2a860',
    500: '#788517',
    950: '#000000',
  },
}
SCSS
$custom: #788517;
$custom-light: #a2a860;
$custom-dark: #000000;
JSON
{
  "hex": "#788517",
  "rgb": {
    "r": 120,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 67.091,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58641,
    "c": 0.12699,
    "h": 116.6
  },
  "luminance": 0.2083
}

Semantic roles & 50–950 ramp

primary
#788517
secondary
#4D3FB9
accent
#3BED50
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788517

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

Preview Lab → · Contrast checker → · Palette generator →

#788517 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva