#788918#788918

#788918 is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 59.6% C 0.131 H 118.4°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#788918
RGBrgb(120, 137, 24)
HSLhsl(69, 70%, 32%)
HSVhsv(69, 82%, 54%)
CMYKcmyk(12.4%, 0%, 82.5%, 46.3%)
CIE-LABlab(53.97, -20.69, 53.00)
CIE-LCHlch(53.97, 56.90, 111.33°)
OKLaboklab(59.62% -0.0624 0.1154)
OKLCHoklch(59.62% 0.131 118.4)
XYZxyz(16.8567, 21.9505, 4.2128)
Luminance0.2195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788918 #291889
analogous
#896218 #788918 #3F8918
triadic
#788918 #187889 #891878
tetradic
#788918 #188962 #291889 #89183F
square
#788918 #188962 #291889 #89183F
split-complementary
#788918 #183F89 #621889
monochromatic
#1D2106 #4A550F #788918 #A6BD21 #C5DD3E

Accessibility & contrast

On white

3.90
#788918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#788918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788918
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788918#FFFFFF#000000##000000
##7889181.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#918124
Tritanopia (blue-blind)
#808175
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #788918;
/* rgb */ color: rgb(120, 137, 24);
/* oklch */ color: oklch(59.6% 0.131 118.4);
Tailwind
colors: {
  custom: {
    50: '#a2ab61',
    500: '#788918',
    950: '#000000',
  },
}
SCSS
$custom: #788918;
$custom-light: #a2ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#788918",
  "rgb": {
    "r": 120,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 69.027,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59617,
    "c": 0.13117,
    "h": 118.4
  },
  "luminance": 0.2195
}

Semantic roles & 50–950 ramp

primary
#788918
secondary
#5340BD
accent
#3BED56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788918

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

Preview Lab → · Contrast checker → · Palette generator →

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