#7D1CB3#7D1CB3

#7D1CB3 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.7% C 0.217 H 308.8°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7D1CB3
RGBrgb(125, 28, 179)
HSLhsl(279, 73%, 41%)
HSVhsv(279, 84%, 70%)
CMYKcmyk(30.2%, 84.4%, 0%, 29.8%)
CIE-LABlab(34.89, 62.38, -59.41)
CIE-LCHlch(34.89, 86.15, 316.40°)
OKLaboklab(46.74% 0.136 -0.1689)
OKLCHoklch(46.74% 0.217 308.8)
XYZxyz(17.0077, 8.4455, 43.3733)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1CB3 #52B31C
analogous
#311CB3 #7D1CB3 #B31C9D
triadic
#7D1CB3 #B37D1C #1CB37D
tetradic
#7D1CB3 #B3311C #52B31C #1C9DB3
square
#7D1CB3 #B3311C #52B31C #1C9DB3
split-complementary
#7D1CB3 #9DB31C #1CB331
monochromatic
#330B49 #58147E #7D1CB3 #9F2EDE #B763E7

Accessibility & contrast

On white

7.81
#7D1CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7D1CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1CB3
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1CB3#FFFFFF#000000##FFFFFF
##7D1CB31.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d1cb3;
/* rgb */ color: rgb(125, 28, 179);
/* oklch */ color: oklch(46.7% 0.217 308.8);
Tailwind
colors: {
  custom: {
    50: '#a867cb',
    500: '#7d1cb3',
    950: '#000000',
  },
}
SCSS
$custom: #7d1cb3;
$custom-light: #a867cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1cb3",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 278.543,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46738,
    "c": 0.21689,
    "h": 308.8
  },
  "luminance": 0.08445
}

Semantic roles & 50–950 ramp

primary
#7D1CB3
secondary
#86CB5F
accent
#F0387A
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D1CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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