#7D1FB3#7D1FB3

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

Color values

HEX#7D1FB3
RGBrgb(125, 31, 179)
HSLhsl(278, 70%, 41%)
HSVhsv(278, 83%, 70%)
CMYKcmyk(30.2%, 82.7%, 0%, 29.8%)
CIE-LABlab(35.19, 61.51, -58.92)
CIE-LCHlch(35.19, 85.18, 316.23°)
OKLaboklab(46.95% 0.134 -0.1675)
OKLCHoklch(46.95% 0.215 308.7)
XYZxyz(17.0824, 8.5949, 43.3982)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1FB3 #55B31F
analogous
#331FB3 #7D1FB3 #B31F9F
triadic
#7D1FB3 #B37D1F #1FB37D
tetradic
#7D1FB3 #B3331F #55B31F #1F9FB3
square
#7D1FB3 #B3331F #55B31F #1F9FB3
split-complementary
#7D1FB3 #9FB31F #1FB333
monochromatic
#340D4B #59167F #7D1FB3 #9E33DC #B768E5

Accessibility & contrast

On white

7.72
#7D1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7D1FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1FB3
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1FB3#FFFFFF#000000##FFFFFF
##7D1FB31.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#74476B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d1fb3;
/* rgb */ color: rgb(125, 31, 179);
/* oklch */ color: oklch(46.9% 0.215 308.7);
Tailwind
colors: {
  custom: {
    50: '#a868cb',
    500: '#7d1fb3',
    950: '#000000',
  },
}
SCSS
$custom: #7d1fb3;
$custom-light: #a868cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1fb3",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 278.108,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46945,
    "c": 0.21454,
    "h": 308.7
  },
  "luminance": 0.08595
}

Semantic roles & 50–950 ramp

primary
#7D1FB3
secondary
#89CA64
accent
#ED3B7C
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D1FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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