#7B217F#7B217F

#7B217F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.166 H 326.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#7B217F
RGBrgb(123, 33, 127)
HSLhsl(297, 59%, 31%)
HSVhsv(297, 74%, 50%)
CMYKcmyk(3.1%, 74%, 0%, 50.2%)
CIE-LABlab(31.42, 50.16, -33.30)
CIE-LCHlch(31.42, 60.21, 326.42°)
OKLaboklab(43.06% 0.1379 -0.0925)
OKLCHoklch(43.06% 0.166 326.1)
XYZxyz(12.5428, 6.8318, 20.7326)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B217F #257F21
analogous
#4C217F #7B217F #7F2154
triadic
#7B217F #7F7B21 #217F7B
tetradic
#7B217F #7F4C21 #257F21 #21547F
square
#7B217F #7F4C21 #257F21 #21547F
split-complementary
#7B217F #547F21 #217F4C
monochromatic
#1D081E #4C144E #7B217F #AA2EB0 #CA4AD0

Accessibility & contrast

On white

8.87
#7B217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7B217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B217F
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B217F#FFFFFF#000000##FFFFFF
##7B217F1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094382
Deuteranopia (green-blind)
#364E7D
Tritanopia (blue-blind)
#7E304E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b217f;
/* rgb */ color: rgb(123, 33, 127);
/* oklch */ color: oklch(43.1% 0.166 326.1);
Tailwind
colors: {
  custom: {
    50: '#a466a4',
    500: '#7b217f',
    950: '#000000',
  },
}
SCSS
$custom: #7b217f;
$custom-light: #a466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b217f",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 297.447,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43059,
    "c": 0.16606,
    "h": 326.1
  },
  "luminance": 0.06831
}

Semantic roles & 50–950 ramp

primary
#7B217F
secondary
#4FB24A
accent
#E2464C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B217F

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

Preview Lab → · Contrast checker → · Palette generator →

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