#7217B3#7217B3

#7217B3 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 45.0% C 0.218 H 304.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7217B3
RGBrgb(114, 23, 179)
HSLhsl(275, 77%, 40%)
HSVhsv(275, 87%, 70%)
CMYKcmyk(36.3%, 87.2%, 0%, 29.8%)
CIE-LABlab(32.80, 62.13, -62.90)
CIE-LCHlch(32.80, 88.41, 314.65°)
OKLaboklab(44.95% 0.1234 -0.1795)
OKLCHoklch(44.95% 0.218 304.5)
XYZxyz(15.3806, 7.4449, 43.2658)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7217B3 #58B317
analogous
#2417B3 #7217B3 #B317A6
triadic
#7217B3 #B37217 #17B372
tetradic
#7217B3 #B32417 #58B317 #17A6B3
square
#7217B3 #B32417 #58B317 #17A6B3
split-complementary
#7217B3 #A6B317 #17B324
monochromatic
#2D0947 #4F107D #7217B3 #9324E3 #AE5BEA

Accessibility & contrast

On white

8.44
#7217B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7217B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7217B3
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7217B3#FFFFFF#000000##FFFFFF
##7217B31.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#65466A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7217b3;
/* rgb */ color: rgb(114, 23, 179);
/* oklch */ color: oklch(45.0% 0.218 304.5);
Tailwind
colors: {
  custom: {
    50: '#a164cb',
    500: '#7217b3',
    950: '#000000',
  },
}
SCSS
$custom: #7217b3;
$custom-light: #a164cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7217b3",
  "rgb": {
    "r": 114,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 275,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44954,
    "c": 0.21786,
    "h": 304.5
  },
  "luminance": 0.07445
}

Semantic roles & 50–950 ramp

primary
#7217B3
secondary
#89CD58
accent
#F43484
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7217B3

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

Preview Lab → · Contrast checker → · Palette generator →

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