#7F17B4#7F17B4

#7F17B4 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.8% C 0.222 H 309.6°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7F17B4
RGBrgb(127, 23, 180)
HSLhsl(280, 77%, 40%)
HSVhsv(280, 87%, 71%)
CMYKcmyk(29.4%, 87.2%, 0%, 29.4%)
CIE-LABlab(34.84, 64.18, -60.07)
CIE-LCHlch(34.84, 87.91, 316.89°)
OKLaboklab(46.79% 0.1414 -0.1708)
OKLCHoklch(46.79% 0.222 309.6)
XYZxyz(17.2953, 8.4205, 43.8854)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F17B4 #4CB417
analogous
#3017B4 #7F17B4 #B4179B
triadic
#7F17B4 #B47F17 #17B47F
tetradic
#7F17B4 #B43017 #4CB417 #179BB4
square
#7F17B4 #B43017 #4CB417 #179BB4
split-complementary
#7F17B4 #9BB417 #17B430
monochromatic
#320947 #59107E #7F17B4 #A325E3 #BA5BEA

Accessibility & contrast

On white

7.82
#7F17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F17B4
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F17B4#FFFFFF#000000##FFFFFF
##7F17B41.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#77456B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f17b4;
/* rgb */ color: rgb(127, 23, 180);
/* oklch */ color: oklch(46.8% 0.222 309.6);
Tailwind
colors: {
  custom: {
    50: '#aa66cb',
    500: '#7f17b4',
    950: '#000000',
  },
}
SCSS
$custom: #7f17b4;
$custom-light: #aa66cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f17b4",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 279.745,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4679,
    "c": 0.22174,
    "h": 309.6
  },
  "luminance": 0.0842
}

Semantic roles & 50–950 ramp

primary
#7F17B4
secondary
#80CE59
accent
#F43475
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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