#7D1FBB#7D1FBB

#7D1FBB is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.6% C 0.222 H 306.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7D1FBB
RGBrgb(125, 31, 187)
HSLhsl(276, 72%, 43%)
HSVhsv(276, 83%, 73%)
CMYKcmyk(33.2%, 83.4%, 0%, 26.7%)
CIE-LABlab(35.85, 63.21, -62.60)
CIE-LCHlch(35.85, 88.96, 315.28°)
OKLaboklab(47.6% 0.1317 -0.1783)
OKLCHoklch(47.6% 0.222 306.5)
XYZxyz(17.9151, 8.9280, 47.7836)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1FBB #5DBB1F
analogous
#2F1FBB #7D1FBB #BB1FAB
triadic
#7D1FBB #BB7D1F #1FBB7D
tetradic
#7D1FBB #BB2F1F #5DBB1F #1FABBB
square
#7D1FBB #BB2F1F #5DBB1F #1FABBB
split-complementary
#7D1FBB #ABBB1F #1FBB2F
monochromatic
#370E52 #5A1687 #7D1FBB #9D39DE #B76EE7

Accessibility & contrast

On white

7.54
#7D1FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7D1FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1FBB
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1FBB#FFFFFF#000000##FFFFFF
##7D1FBB1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#724B70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d1fbb;
/* rgb */ color: rgb(125, 31, 187);
/* oklch */ color: oklch(47.6% 0.222 306.5);
Tailwind
colors: {
  custom: {
    50: '#a969d0',
    500: '#7d1fbb',
    950: '#000000',
  },
}
SCSS
$custom: #7d1fbb;
$custom-light: #a969d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1fbb",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 187
  },
  "hsl": {
    "h": 276.154,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47601,
    "c": 0.2217,
    "h": 306.5
  },
  "luminance": 0.08928
}

Semantic roles & 50–950 ramp

primary
#7D1FBB
secondary
#91CD69
accent
#EE3A81
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7D1FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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