#7217B4#7217B4

#7217B4 is a mid, highly saturated violet. Relative luminance 0.075; OKLCH L 45.0% C 0.219 H 304.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#7217B4
RGBrgb(114, 23, 180)
HSLhsl(275, 77%, 40%)
HSVhsv(275, 87%, 71%)
CMYKcmyk(36.7%, 87.2%, 0%, 29.4%)
CIE-LABlab(32.89, 62.34, -63.35)
CIE-LCHlch(32.89, 88.88, 314.54°)
OKLaboklab(45.04% 0.1231 -0.1809)
OKLCHoklch(45.04% 0.219 304.2)
XYZxyz(15.4821, 7.4855, 43.8004)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7217B4 #59B417
analogous
#2317B4 #7217B4 #B417A8
triadic
#7217B4 #B47217 #17B472
tetradic
#7217B4 #B42317 #59B417 #17A8B4
square
#7217B4 #B42317 #59B417 #17A8B4
split-complementary
#7217B4 #A8B417 #17B423
monochromatic
#2D0947 #50107E #7217B4 #9325E3 #AE5BEA

Accessibility & contrast

On white

8.41
#7217B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7217B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7217B4
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7217B4#FFFFFF#000000##FFFFFF
##7217B41.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#65476A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7217b4;
/* rgb */ color: rgb(114, 23, 180);
/* oklch */ color: oklch(45.0% 0.219 304.2);
Tailwind
colors: {
  custom: {
    50: '#a164cc',
    500: '#7217b4',
    950: '#000000',
  },
}
SCSS
$custom: #7217b4;
$custom-light: #a164cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7217b4",
  "rgb": {
    "r": 114,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 274.777,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45042,
    "c": 0.21876,
    "h": 304.2
  },
  "luminance": 0.07485
}

Semantic roles & 50–950 ramp

primary
#7217B4
secondary
#8ACE59
accent
#F43485
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7217B4

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

Preview Lab → · Contrast checker → · Palette generator →

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