#7B217C#7B217C

#7B217C is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.164 H 327.5°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7B217C
RGBrgb(123, 33, 124)
HSLhsl(299, 58%, 31%)
HSVhsv(299, 73%, 49%)
CMYKcmyk(0.8%, 73.4%, 0%, 51.4%)
CIE-LABlab(31.24, 49.62, -31.70)
CIE-LCHlch(31.24, 58.88, 327.43°)
OKLaboklab(42.87% 0.1379 -0.0879)
OKLCHoklch(42.87% 0.164 327.5)
XYZxyz(12.3501, 6.7548, 19.7182)
Luminance0.0675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B217C #227C21
analogous
#4D217C #7B217C #7C214F
triadic
#7B217C #7C7B21 #217C7B
tetradic
#7B217C #7C4D21 #227C21 #214F7C
square
#7B217C #7C4D21 #227C21 #214F7C
split-complementary
#7B217C #4F7C21 #217C4D
monochromatic
#1B071B #4B144C #7B217C #AB2EAC #CD49CF

Accessibility & contrast

On white

8.93
#7B217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7B217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B217C
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B217C#FFFFFF#000000##FFFFFF
##7B217C1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F427F
Deuteranopia (green-blind)
#384E7A
Tritanopia (blue-blind)
#7F2F4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b217c;
/* rgb */ color: rgb(123, 33, 124);
/* oklch */ color: oklch(42.9% 0.164 327.5);
Tailwind
colors: {
  custom: {
    50: '#a466a2',
    500: '#7b217c',
    950: '#000000',
  },
}
SCSS
$custom: #7b217c;
$custom-light: #a466a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b217c",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 299.341,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42873,
    "c": 0.16353,
    "h": 327.5
  },
  "luminance": 0.06754
}

Semantic roles & 50–950 ramp

primary
#7B217C
secondary
#4BAF4A
accent
#E14748
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B217C

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

Preview Lab → · Contrast checker → · Palette generator →

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