#7817B4#7817B4

#7817B4 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.8% C 0.220 H 306.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7817B4
RGBrgb(120, 23, 180)
HSLhsl(277, 77%, 40%)
HSVhsv(277, 87%, 71%)
CMYKcmyk(33.3%, 87.2%, 0%, 29.4%)
CIE-LABlab(33.78, 63.17, -61.86)
CIE-LCHlch(33.78, 88.42, 315.60°)
OKLaboklab(45.84% 0.1317 -0.1763)
OKLCHoklch(45.84% 0.22 306.8)
XYZxyz(16.2885, 7.9013, 43.8382)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7817B4 #53B417
analogous
#2917B4 #7817B4 #B417A2
triadic
#7817B4 #B47817 #17B478
tetradic
#7817B4 #B42917 #53B417 #17A2B4
square
#7817B4 #B42917 #53B417 #17A2B4
split-complementary
#7817B4 #A2B417 #17B429
monochromatic
#300947 #54107E #7817B4 #9B25E3 #B45BEA

Accessibility & contrast

On white

8.14
#7817B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7817B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7817B4
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7817B4#FFFFFF#000000##FFFFFF
##7817B41.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#6D466A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7817b4;
/* rgb */ color: rgb(120, 23, 180);
/* oklch */ color: oklch(45.8% 0.220 306.8);
Tailwind
colors: {
  custom: {
    50: '#a565cc',
    500: '#7817b4',
    950: '#000000',
  },
}
SCSS
$custom: #7817b4;
$custom-light: #a565cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7817b4",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 277.07,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45837,
    "c": 0.22003,
    "h": 306.8
  },
  "luminance": 0.07901
}

Semantic roles & 50–950 ramp

primary
#7817B4
secondary
#86CE59
accent
#F4347D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7817B4

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

Preview Lab → · Contrast checker → · Palette generator →

#7817B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva