#7D1B9F#7D1B9F

#7D1B9F is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.1% C 0.200 H 315.0°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7D1B9F
RGBrgb(125, 27, 159)
HSLhsl(285, 71%, 36%)
HSVhsv(285, 83%, 62%)
CMYKcmyk(21.4%, 83%, 0%, 37.6%)
CIE-LABlab(33.24, 58.61, -50.09)
CIE-LCHlch(33.24, 77.10, 319.48°)
OKLaboklab(45.1% 0.1417 -0.1416)
OKLCHoklch(45.1% 0.2 315)
XYZxyz(15.1064, 7.6476, 33.4746)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1B9F #3D9F1B
analogous
#3B1B9F #7D1B9F #9F1B7F
triadic
#7D1B9F #9F7D1B #1B9F7D
tetradic
#7D1B9F #9F3B1B #3D9F1B #1B7F9F
square
#7D1B9F #9F3B1B #3D9F1B #1B7F9F
split-complementary
#7D1B9F #7F9F1B #1B9F3B
monochromatic
#2B0936 #54126B #7D1B9F #A624D3 #BD53E2

Accessibility & contrast

On white

8.30
#7D1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7D1B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1B9F
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1B9F#FFFFFF#000000##FFFFFF
##7D1B9F1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#11519C
Tritanopia (blue-blind)
#7A3C5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1b9f;
/* rgb */ color: rgb(125, 27, 159);
/* oklch */ color: oklch(45.1% 0.200 315.0);
Tailwind
colors: {
  custom: {
    50: '#a766bc',
    500: '#7d1b9f',
    950: '#000000',
  },
}
SCSS
$custom: #7d1b9f;
$custom-light: #a766bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1b9f",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 284.545,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45097,
    "c": 0.2003,
    "h": 315
  },
  "luminance": 0.07647
}

Semantic roles & 50–950 ramp

primary
#7D1B9F
secondary
#6FC551
accent
#EE3A68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7D1B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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