#7D1FB4#7D1FB4

#7D1FB4 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 47.0% C 0.215 H 308.4°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7D1FB4
RGBrgb(125, 31, 180)
HSLhsl(278, 71%, 41%)
HSVhsv(278, 83%, 71%)
CMYKcmyk(30.6%, 82.8%, 0%, 29.4%)
CIE-LABlab(35.27, 61.72, -59.39)
CIE-LCHlch(35.27, 85.65, 316.10°)
OKLaboklab(47.03% 0.1337 -0.1689)
OKLCHoklch(47.03% 0.215 308.4)
XYZxyz(17.1839, 8.6355, 43.9327)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1FB4 #56B41F
analogous
#321FB4 #7D1FB4 #B41FA1
triadic
#7D1FB4 #B47D1F #1FB47D
tetradic
#7D1FB4 #B4321F #56B41F #1FA1B4
square
#7D1FB4 #B4321F #56B41F #1FA1B4
split-complementary
#7D1FB4 #A1B41F #1FB432
monochromatic
#340D4C #591680 #7D1FB4 #9E34DC #B768E5

Accessibility & contrast

On white

7.70
#7D1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7D1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1FB4
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1FB4#FFFFFF#000000##FFFFFF
##7D1FB41.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#74486C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d1fb4;
/* rgb */ color: rgb(125, 31, 180);
/* oklch */ color: oklch(47.0% 0.215 308.4);
Tailwind
colors: {
  custom: {
    50: '#a868cb',
    500: '#7d1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #7d1fb4;
$custom-light: #a868cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1fb4",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 277.852,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47026,
    "c": 0.21543,
    "h": 308.4
  },
  "luminance": 0.08635
}

Semantic roles & 50–950 ramp

primary
#7D1FB4
secondary
#8ACB64
accent
#ED3A7C
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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