#7D1BB4#7D1BB4

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

Color values

HEX#7D1BB4
RGBrgb(125, 27, 180)
HSLhsl(278, 74%, 41%)
HSVhsv(278, 85%, 71%)
CMYKcmyk(30.6%, 85%, 0%, 29.4%)
CIE-LABlab(34.88, 62.87, -60.02)
CIE-LCHlch(34.88, 86.92, 316.33°)
OKLaboklab(46.76% 0.1363 -0.1707)
OKLCHoklch(46.76% 0.219 308.6)
XYZxyz(17.0859, 8.4394, 43.9001)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1BB4 #52B41B
analogous
#301BB4 #7D1BB4 #B41B9E
triadic
#7D1BB4 #B47D1B #1BB47D
tetradic
#7D1BB4 #B4301B #52B41B #1B9EB4
square
#7D1BB4 #B4301B #52B41B #1B9EB4
split-complementary
#7D1BB4 #9EB41B #1BB430
monochromatic
#330B4A #58137F #7D1BB4 #9F2DDF #B762E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D1BB4#FFFFFF#000000##FFFFFF
##7D1BB41.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)
#004FB8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#74466B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d1bb4;
/* rgb */ color: rgb(125, 27, 180);
/* oklch */ color: oklch(46.8% 0.218 308.6);
Tailwind
colors: {
  custom: {
    50: '#a967cb',
    500: '#7d1bb4',
    950: '#000000',
  },
}
SCSS
$custom: #7d1bb4;
$custom-light: #a967cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1bb4",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 278.431,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46755,
    "c": 0.2185,
    "h": 308.6
  },
  "luminance": 0.08439
}

Semantic roles & 50–950 ramp

primary
#7D1BB4
secondary
#86CC5F
accent
#F1377A
background
#FAF6FC
surface
#F5EBF9
border
#CFC6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7D1BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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