#7B1DC9#7B1DC9

#7B1DC9 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.4% C 0.235 H 302.2°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7B1DC9
RGBrgb(123, 29, 201)
HSLhsl(273, 75%, 45%)
HSVhsv(273, 86%, 79%)
CMYKcmyk(38.8%, 85.6%, 0%, 21.2%)
CIE-LABlab(36.57, 66.52, -69.64)
CIE-LCHlch(36.57, 96.31, 313.69°)
OKLaboklab(48.41% 0.1255 -0.199)
OKLCHoklch(48.41% 0.235 302.2)
XYZxyz(19.1478, 9.3067, 56.0346)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1DC9 #6BC91D
analogous
#251DC9 #7B1DC9 #C91DC1
triadic
#7B1DC9 #C97B1D #1DC97B
tetradic
#7B1DC9 #C9251D #6BC91D #1DC1C9
square
#7B1DC9 #C9251D #6BC91D #1DC1C9
split-complementary
#7B1DC9 #C1C91D #1DC925
monochromatic
#3A0E5E #5A1594 #7B1DC9 #9940E3 #B675EB

Accessibility & contrast

On white

7.34
#7B1DC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7B1DC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1DC9
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1DC9#FFFFFF#000000##FFFFFF
##7B1DC91.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CD
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#6A5178
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b1dc9;
/* rgb */ color: rgb(123, 29, 201);
/* oklch */ color: oklch(48.4% 0.235 302.2);
Tailwind
colors: {
  custom: {
    50: '#a968db',
    500: '#7b1dc9',
    950: '#000000',
  },
}
SCSS
$custom: #7b1dc9;
$custom-light: #a968db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1dc9",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 201
  },
  "hsl": {
    "h": 272.791,
    "s": 74.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48409,
    "c": 0.23533,
    "h": 302.2
  },
  "luminance": 0.09307
}

Semantic roles & 50–950 ramp

primary
#7B1DC9
secondary
#9CD270
accent
#F1368B
background
#FBF6FD
surface
#F6ECFB
border
#D0C7D4
text
#110715
muted
#807A83

Preview Lab

Preview with #7B1DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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