#788217#788217

#788217 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#788217
RGBrgb(120, 130, 23)
HSLhsl(66, 70%, 30%)
HSVhsv(66, 82%, 51%)
CMYKcmyk(7.7%, 0%, 82.3%, 49%)
CIE-LABlab(51.86, -17.10, 51.42)
CIE-LCHlch(51.86, 54.19, 108.39°)
OKLaboklab(57.92% -0.0526 0.1118)
OKLCHoklch(57.92% 0.124 115.2)
XYZxyz(15.8835, 20.0205, 3.8381)
Luminance0.2002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788217 #211782
analogous
#825617 #788217 #438217
triadic
#788217 #177882 #821778
tetradic
#788217 #178256 #211782 #821743
square
#788217 #178256 #211782 #821743
split-complementary
#788217 #174382 #561782
monochromatic
#181A05 #484E0E #788217 #A8B620 #CCDC38

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##788217#FFFFFF#000000##000000
##7882171.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)
#8B7C22
Tritanopia (blue-blind)
#807A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #788217;
/* rgb */ color: rgb(120, 130, 23);
/* oklch */ color: oklch(57.9% 0.124 115.2);
Tailwind
colors: {
  custom: {
    50: '#a2a65f',
    500: '#788217',
    950: '#000000',
  },
}
SCSS
$custom: #788217;
$custom-light: #a2a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#788217",
  "rgb": {
    "r": 120,
    "g": 130,
    "b": 23
  },
  "hsl": {
    "h": 65.607,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.57916,
    "c": 0.12356,
    "h": 115.2
  },
  "luminance": 0.2002
}

Semantic roles & 50–950 ramp

primary
#788217
secondary
#4A3EB6
accent
#3BED4C
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788217

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

Preview Lab → · Contrast checker → · Palette generator →

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