#7D1CB4#7D1CB4

#7D1CB4 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.8% C 0.218 H 308.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7D1CB4
RGBrgb(125, 28, 180)
HSLhsl(278, 73%, 41%)
HSVhsv(278, 84%, 71%)
CMYKcmyk(30.6%, 84.4%, 0%, 29.4%)
CIE-LABlab(34.98, 62.59, -59.87)
CIE-LCHlch(34.98, 86.62, 316.27°)
OKLaboklab(46.82% 0.1357 -0.1703)
OKLCHoklch(46.82% 0.218 308.6)
XYZxyz(17.1092, 8.4861, 43.9078)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1CB4 #53B41C
analogous
#311CB4 #7D1CB4 #B41C9F
triadic
#7D1CB4 #B47D1C #1CB47D
tetradic
#7D1CB4 #B4311C #53B41C #1C9FB4
square
#7D1CB4 #B4311C #53B41C #1C9FB4
split-complementary
#7D1CB4 #9FB41C #1CB431
monochromatic
#330C4A #58147F #7D1CB4 #9F2FDF #B764E7

Accessibility & contrast

On white

7.79
#7D1CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7D1CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1CB4
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1CB4#FFFFFF#000000##FFFFFF
##7D1CB41.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#74466B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d1cb4;
/* rgb */ color: rgb(125, 28, 180);
/* oklch */ color: oklch(46.8% 0.218 308.6);
Tailwind
colors: {
  custom: {
    50: '#a867cb',
    500: '#7d1cb4',
    950: '#000000',
  },
}
SCSS
$custom: #7d1cb4;
$custom-light: #a867cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1cb4",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 278.289,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46819,
    "c": 0.21776,
    "h": 308.6
  },
  "luminance": 0.08486
}

Semantic roles & 50–950 ramp

primary
#7D1CB4
secondary
#87CC60
accent
#F0387B
background
#FAF6FC
surface
#F5EBF9
border
#CFC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D1CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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