#7817B3#7817B3

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

Color values

HEX#7817B3
RGBrgb(120, 23, 179)
HSLhsl(277, 77%, 40%)
HSVhsv(277, 87%, 70%)
CMYKcmyk(33%, 87.2%, 0%, 29.8%)
CIE-LABlab(33.69, 62.96, -61.40)
CIE-LCHlch(33.69, 87.95, 315.72°)
OKLaboklab(45.75% 0.132 -0.1749)
OKLCHoklch(45.75% 0.219 307)
XYZxyz(16.1870, 7.8607, 43.3036)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7817B3 #52B317
analogous
#2A17B3 #7817B3 #B317A0
triadic
#7817B3 #B37817 #17B378
tetradic
#7817B3 #B32A17 #52B317 #17A0B3
square
#7817B3 #B32A17 #52B317 #17A0B3
split-complementary
#7817B3 #A0B317 #17B32A
monochromatic
#2F0947 #54107D #7817B3 #9B24E3 #B45BEA

Accessibility & contrast

On white

8.16
#7817B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7817B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7817B3
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7817B3#FFFFFF#000000##FFFFFF
##7817B31.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#6E456A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7817b3;
/* rgb */ color: rgb(120, 23, 179);
/* oklch */ color: oklch(45.8% 0.219 307.0);
Tailwind
colors: {
  custom: {
    50: '#a565cb',
    500: '#7817b3',
    950: '#000000',
  },
}
SCSS
$custom: #7817b3;
$custom-light: #a565cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7817b3",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 277.308,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45752,
    "c": 0.21915,
    "h": 307
  },
  "luminance": 0.07861
}

Semantic roles & 50–950 ramp

primary
#7817B3
secondary
#85CD58
accent
#F4347D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7817B3

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

Preview Lab → · Contrast checker → · Palette generator →

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