#7D1CAB#7D1CAB

#7D1CAB is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.1% C 0.210 H 311.2°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7D1CAB
RGBrgb(125, 28, 171)
HSLhsl(281, 72%, 39%)
HSVhsv(281, 84%, 67%)
CMYKcmyk(26.9%, 83.6%, 0%, 32.9%)
CIE-LABlab(34.25, 60.73, -55.67)
CIE-LCHlch(34.25, 82.39, 317.49°)
OKLaboklab(46.1% 0.1382 -0.158)
OKLCHoklch(46.1% 0.21 311.2)
XYZxyz(16.2220, 8.1312, 39.2351)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1CAB #4AAB1C
analogous
#361CAB #7D1CAB #AB1C92
triadic
#7D1CAB #AB7D1C #1CAB7D
tetradic
#7D1CAB #AB361C #4AAB1C #1C92AB
square
#7D1CAB #AB361C #4AAB1C #1C92AB
split-complementary
#7D1CAB #92AB1C #1CAB36
monochromatic
#300B42 #571376 #7D1CAB #A228DC #B95DE4

Accessibility & contrast

On white

8.00
#7D1CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7D1CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1CAB
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1CAB#FFFFFF#000000##FFFFFF
##7D1CAB1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0052A8
Tritanopia (blue-blind)
#774266
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d1cab;
/* rgb */ color: rgb(125, 28, 171);
/* oklch */ color: oklch(46.1% 0.210 311.2);
Tailwind
colors: {
  custom: {
    50: '#a867c5',
    500: '#7d1cab',
    950: '#000000',
  },
}
SCSS
$custom: #7d1cab;
$custom-light: #a867c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1cab",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 280.699,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46095,
    "c": 0.20988,
    "h": 311.2
  },
  "luminance": 0.08131
}

Semantic roles & 50–950 ramp

primary
#7D1CAB
secondary
#7EC95A
accent
#EF3974
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D1CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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