#7D17B4#7D17B4

#7D17B4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.5% C 0.221 H 308.8°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7D17B4
RGBrgb(125, 23, 180)
HSLhsl(279, 77%, 40%)
HSVhsv(279, 87%, 71%)
CMYKcmyk(30.6%, 87.2%, 0%, 29.4%)
CIE-LABlab(34.54, 63.89, -60.59)
CIE-LCHlch(34.54, 88.05, 316.52°)
OKLaboklab(46.52% 0.1387 -0.1724)
OKLCHoklch(46.52% 0.221 308.8)
XYZxyz(17.0003, 8.2684, 43.8715)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D17B4 #4EB417
analogous
#2F17B4 #7D17B4 #B4179D
triadic
#7D17B4 #B47D17 #17B47D
tetradic
#7D17B4 #B42F17 #4EB417 #179DB4
square
#7D17B4 #B42F17 #4EB417 #179DB4
split-complementary
#7D17B4 #9DB417 #17B42F
monochromatic
#320947 #57107E #7D17B4 #A125E3 #B85BEA

Accessibility & contrast

On white

7.91
#7D17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7D17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D17B4
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D17B4#FFFFFF#000000##FFFFFF
##7D17B41.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#74456B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d17b4;
/* rgb */ color: rgb(125, 23, 180);
/* oklch */ color: oklch(46.5% 0.221 308.8);
Tailwind
colors: {
  custom: {
    50: '#a966cb',
    500: '#7d17b4',
    950: '#000000',
  },
}
SCSS
$custom: #7d17b4;
$custom-light: #a966cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d17b4",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 278.981,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46515,
    "c": 0.22122,
    "h": 308.8
  },
  "luminance": 0.08268
}

Semantic roles & 50–950 ramp

primary
#7D17B4
secondary
#82CE59
accent
#F43477
background
#FAF6FC
surface
#F5EBF9
border
#CFC6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7D17B4

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

Preview Lab → · Contrast checker → · Palette generator →

#7D17B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva