#788915#788915

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

Color values

HEX#788915
RGBrgb(120, 137, 21)
HSLhsl(69, 73%, 31%)
HSVhsv(69, 85%, 54%)
CMYKcmyk(12.4%, 0%, 84.7%, 46.3%)
CIE-LABlab(53.96, -20.80, 53.82)
CIE-LCHlch(53.96, 57.70, 111.13°)
OKLaboklab(59.6% -0.0629 0.1166)
OKLCHoklch(59.6% 0.132 118.4)
XYZxyz(16.8272, 21.9387, 4.0575)
Luminance0.2194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788915 #261589
analogous
#896015 #788915 #3E8915
triadic
#788915 #157889 #891578
tetradic
#788915 #158960 #261589 #89153E
square
#788915 #158960 #261589 #89153E
split-complementary
#788915 #153E89 #601589
monochromatic
#1B1F05 #4A540D #788915 #A6BE1D #C8E038

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##788915#FFFFFF#000000##000000
##7889151.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)
#918122
Tritanopia (blue-blind)
#808174
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #788915;
/* rgb */ color: rgb(120, 137, 21);
/* oklch */ color: oklch(59.6% 0.132 118.4);
Tailwind
colors: {
  custom: {
    50: '#a2ab60',
    500: '#788915',
    950: '#000000',
  },
}
SCSS
$custom: #788915;
$custom-light: #a2ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#788915",
  "rgb": {
    "r": 120,
    "g": 137,
    "b": 21
  },
  "hsl": {
    "h": 68.793,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59603,
    "c": 0.13249,
    "h": 118.4
  },
  "luminance": 0.21939
}

Semantic roles & 50–950 ramp

primary
#788915
secondary
#503DBD
accent
#38F053
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F1005
muted
#7F7F79

Preview Lab

Preview with #788915

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

Preview Lab → · Contrast checker → · Palette generator →

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