#7B17A1#7B17A1

#7B17A1 is a dark, highly saturated purple. Relative luminance 0.074; OKLCH L 44.7% C 0.204 H 313.7°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#7B17A1
RGBrgb(123, 23, 161)
HSLhsl(283, 75%, 36%)
HSVhsv(283, 86%, 63%)
CMYKcmyk(23.6%, 85.7%, 0%, 36.9%)
CIE-LABlab(32.70, 59.75, -52.20)
CIE-LCHlch(32.70, 79.34, 318.86°)
OKLaboklab(44.7% 0.1413 -0.1478)
OKLCHoklch(44.7% 0.204 313.7)
XYZxyz(14.9067, 7.3975, 34.3539)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B17A1 #3DA117
analogous
#3617A1 #7B17A1 #A11782
triadic
#7B17A1 #A17B17 #17A17B
tetradic
#7B17A1 #A13617 #3DA117 #1782A1
square
#7B17A1 #A13617 #3DA117 #1782A1
split-complementary
#7B17A1 #82A117 #17A136
monochromatic
#290836 #520F6B #7B17A1 #A41FD7 #BC4DE6

Accessibility & contrast

On white

8.47
#7B17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7B17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B17A1
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B17A1#FFFFFF#000000##FFFFFF
##7B17A11.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#773C5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b17a1;
/* rgb */ color: rgb(123, 23, 161);
/* oklch */ color: oklch(44.7% 0.204 313.7);
Tailwind
colors: {
  custom: {
    50: '#a664be',
    500: '#7b17a1',
    950: '#000000',
  },
}
SCSS
$custom: #7b17a1;
$custom-light: #a664be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b17a1",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 283.478,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44702,
    "c": 0.20449,
    "h": 313.7
  },
  "luminance": 0.07397
}

Semantic roles & 50–950 ramp

primary
#7B17A1
secondary
#6EC74C
accent
#F2366A
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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