#7D1CA8#7D1CA8

#7D1CA8 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.9% C 0.207 H 312.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7D1CA8
RGBrgb(125, 28, 168)
HSLhsl(282, 71%, 38%)
HSVhsv(282, 83%, 66%)
CMYKcmyk(25.6%, 83.3%, 0%, 34.1%)
CIE-LABlab(34.02, 60.12, -54.25)
CIE-LCHlch(34.02, 80.98, 317.94°)
OKLaboklab(45.86% 0.1389 -0.1538)
OKLCHoklch(45.86% 0.207 312.1)
XYZxyz(15.9393, 8.0181, 37.7462)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1CA8 #47A81C
analogous
#371CA8 #7D1CA8 #A81C8D
triadic
#7D1CA8 #A87D1C #1CA87D
tetradic
#7D1CA8 #A8371C #47A81C #1C8DA8
square
#7D1CA8 #A8371C #47A81C #1C8DA8
split-complementary
#7D1CA8 #8DA81C #1CA837
monochromatic
#2F0B3F #561374 #7D1CA8 #A326DB #BA5BE4

Accessibility & contrast

On white

8.07
#7D1CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7D1CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1CA8
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1CA8#FFFFFF#000000##FFFFFF
##7D1CA81.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#784164
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d1ca8;
/* rgb */ color: rgb(125, 28, 168);
/* oklch */ color: oklch(45.9% 0.207 312.1);
Tailwind
colors: {
  custom: {
    50: '#a866c3',
    500: '#7d1ca8',
    950: '#000000',
  },
}
SCSS
$custom: #7d1ca8;
$custom-light: #a866c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1ca8",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 168
  },
  "hsl": {
    "h": 281.571,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45858,
    "c": 0.20726,
    "h": 312.1
  },
  "luminance": 0.08018
}

Semantic roles & 50–950 ramp

primary
#7D1CA8
secondary
#7AC758
accent
#EE3A71
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D1CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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