#788B17#788B17

#788B17 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.1% C 0.134 H 119.2°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#788B17
RGBrgb(120, 139, 23)
HSLhsl(70, 72%, 32%)
HSVhsv(70, 83%, 55%)
CMYKcmyk(13.7%, 0%, 83.5%, 45.5%)
CIE-LABlab(54.57, -21.75, 53.81)
CIE-LCHlch(54.57, 58.04, 112.01°)
OKLaboklab(60.1% -0.0654 0.1169)
OKLCHoklch(60.1% 0.134 119.2)
XYZxyz(17.1334, 22.5203, 4.2547)
Luminance0.2252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788B17 #2A178B
analogous
#8B6417 #788B17 #3E8B17
triadic
#788B17 #17788B #8B1778
tetradic
#788B17 #178B64 #2A178B #8B173E
square
#788B17 #178B64 #2A178B #8B173E
split-complementary
#788B17 #173E8B #64178B
monochromatic
#1D2206 #4B560E #788B17 #A5C020 #C5DF3D

Accessibility & contrast

On white

3.82
#788B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#788B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788B17
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788B17#FFFFFF#000000##000000
##788B171.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#928323
Tritanopia (blue-blind)
#808376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #788b17;
/* rgb */ color: rgb(120, 139, 23);
/* oklch */ color: oklch(60.1% 0.134 119.2);
Tailwind
colors: {
  custom: {
    50: '#a2ac61',
    500: '#788b17',
    950: '#000000',
  },
}
SCSS
$custom: #788b17;
$custom-light: #a2ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#788b17",
  "rgb": {
    "r": 120,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 69.828,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60099,
    "c": 0.13397,
    "h": 119.2
  },
  "luminance": 0.2252
}

Semantic roles & 50–950 ramp

primary
#788B17
secondary
#543FBF
accent
#39EE57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788B17

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

Preview Lab → · Contrast checker → · Palette generator →

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