#788215#788215

#788215 is a mid, vivid yellow. Relative luminance 0.200; OKLCH L 57.9% C 0.124 H 115.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#788215
RGBrgb(120, 130, 21)
HSLhsl(66, 72%, 30%)
HSVhsv(66, 84%, 51%)
CMYKcmyk(7.7%, 0%, 83.8%, 49%)
CIE-LABlab(51.85, -17.17, 51.99)
CIE-LCHlch(51.85, 54.75, 108.28°)
OKLaboklab(57.91% -0.0529 0.1127)
OKLCHoklch(57.91% 0.124 115.2)
XYZxyz(15.8642, 20.0128, 3.7365)
Luminance0.2001 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788215 #1F1582
analogous
#825615 #788215 #418215
triadic
#788215 #157882 #821578
tetradic
#788215 #158256 #1F1582 #821541
square
#788215 #158256 #1F1582 #821541
split-complementary
#788215 #154182 #561582
monochromatic
#181A04 #474D0C #788215 #A9B71E #CEDE33

Accessibility & contrast

On white

4.20
#788215 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#788215 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788215
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788215#FFFFFF#000000##000000
##7882151.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8B7C20
Tritanopia (blue-blind)
#807A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #788215;
/* rgb */ color: rgb(120, 130, 21);
/* oklch */ color: oklch(57.9% 0.124 115.2);
Tailwind
colors: {
  custom: {
    50: '#a2a65e',
    500: '#788215',
    950: '#000000',
  },
}
SCSS
$custom: #788215;
$custom-light: #a2a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#788215",
  "rgb": {
    "r": 120,
    "g": 130,
    "b": 21
  },
  "hsl": {
    "h": 65.505,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57906,
    "c": 0.12449,
    "h": 115.2
  },
  "luminance": 0.20012
}

Semantic roles & 50–950 ramp

primary
#788215
secondary
#473CB7
accent
#39EF4A
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788215

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

Preview Lab → · Contrast checker → · Palette generator →

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