#788B18#788B18

#788B18 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#788B18
RGBrgb(120, 139, 24)
HSLhsl(70, 71%, 32%)
HSVhsv(70, 83%, 55%)
CMYKcmyk(13.7%, 0%, 82.7%, 45.5%)
CIE-LABlab(54.58, -21.72, 53.53)
CIE-LCHlch(54.58, 57.77, 112.08°)
OKLaboklab(60.1% -0.0652 0.1165)
OKLCHoklch(60.1% 0.134 119.2)
XYZxyz(17.1436, 22.5244, 4.3085)
Luminance0.2252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788B18 #2B188B
analogous
#8B6518 #788B18 #3F8B18
triadic
#788B18 #18788B #8B1878
tetradic
#788B18 #188B65 #2B188B #8B183F
square
#788B18 #188B65 #2B188B #8B183F
split-complementary
#788B18 #183F8B #65188B
monochromatic
#1E2306 #4B570F #788B18 #A5BF21 #C4DE3F

Accessibility & contrast

On white

3.81
#788B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##788B18#FFFFFF#000000##000000
##788B181.003.815.505.50
#FFFFFF3.811.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #788b18;
/* rgb */ color: rgb(120, 139, 24);
/* oklch */ color: oklch(60.1% 0.134 119.2);
Tailwind
colors: {
  custom: {
    50: '#a2ac61',
    500: '#788b18',
    950: '#000000',
  },
}
SCSS
$custom: #788b18;
$custom-light: #a2ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#788b18",
  "rgb": {
    "r": 120,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 69.913,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60104,
    "c": 0.13352,
    "h": 119.2
  },
  "luminance": 0.22524
}

Semantic roles & 50–950 ramp

primary
#788B18
secondary
#5540BE
accent
#3AED58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788B18

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

Preview Lab → · Contrast checker → · Palette generator →

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