#7B1CB4#7B1CB4

#7B1CB4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.6% C 0.217 H 307.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7B1CB4
RGBrgb(123, 28, 180)
HSLhsl(278, 73%, 41%)
HSVhsv(278, 84%, 71%)
CMYKcmyk(31.7%, 84.4%, 0%, 29.4%)
CIE-LABlab(34.68, 62.29, -60.37)
CIE-LCHlch(34.68, 86.75, 315.89°)
OKLaboklab(46.55% 0.1329 -0.1718)
OKLCHoklch(46.55% 0.217 307.7)
XYZxyz(16.8201, 8.3370, 43.8943)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1CB4 #55B41C
analogous
#2F1CB4 #7B1CB4 #B41CA1
triadic
#7B1CB4 #B47B1C #1CB47B
tetradic
#7B1CB4 #B42F1C #55B41C #1CA1B4
square
#7B1CB4 #B42F1C #55B41C #1CA1B4
split-complementary
#7B1CB4 #A1B41C #1CB42F
monochromatic
#330C4A #57147F #7B1CB4 #9D2FDF #B664E7

Accessibility & contrast

On white

7.87
#7B1CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7B1CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1CB4
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1CB4#FFFFFF#000000##FFFFFF
##7B1CB41.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#71476B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b1cb4;
/* rgb */ color: rgb(123, 28, 180);
/* oklch */ color: oklch(46.6% 0.217 307.7);
Tailwind
colors: {
  custom: {
    50: '#a767cb',
    500: '#7b1cb4',
    950: '#000000',
  },
}
SCSS
$custom: #7b1cb4;
$custom-light: #a767cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1cb4",
  "rgb": {
    "r": 123,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 277.5,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4655,
    "c": 0.21727,
    "h": 307.7
  },
  "luminance": 0.08337
}

Semantic roles & 50–950 ramp

primary
#7B1CB4
secondary
#88CC60
accent
#F0387D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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