#7B1CB3#7B1CB3

#7B1CB3 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.5% C 0.216 H 308.0°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7B1CB3
RGBrgb(123, 28, 179)
HSLhsl(278, 73%, 41%)
HSVhsv(278, 84%, 70%)
CMYKcmyk(31.3%, 84.4%, 0%, 29.8%)
CIE-LABlab(34.59, 62.08, -59.91)
CIE-LCHlch(34.59, 86.27, 316.02°)
OKLaboklab(46.47% 0.1332 -0.1705)
OKLCHoklch(46.47% 0.216 308)
XYZxyz(16.7186, 8.2964, 43.3597)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1CB3 #54B31C
analogous
#2F1CB3 #7B1CB3 #B31CA0
triadic
#7B1CB3 #B37B1C #1CB37B
tetradic
#7B1CB3 #B32F1C #54B31C #1CA0B3
square
#7B1CB3 #B32F1C #54B31C #1CA0B3
split-complementary
#7B1CB3 #A0B31C #1CB32F
monochromatic
#320B49 #57147E #7B1CB3 #9D2EDE #B663E7

Accessibility & contrast

On white

7.90
#7B1CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7B1CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1CB3
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1CB3#FFFFFF#000000##FFFFFF
##7B1CB31.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#72466B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b1cb3;
/* rgb */ color: rgb(123, 28, 179);
/* oklch */ color: oklch(46.5% 0.216 308.0);
Tailwind
colors: {
  custom: {
    50: '#a767cb',
    500: '#7b1cb3',
    950: '#000000',
  },
}
SCSS
$custom: #7b1cb3;
$custom-light: #a767cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1cb3",
  "rgb": {
    "r": 123,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 277.748,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46467,
    "c": 0.21639,
    "h": 308
  },
  "luminance": 0.08296
}

Semantic roles & 50–950 ramp

primary
#7B1CB3
secondary
#87CB5F
accent
#F0387C
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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