#7B1BB4#7B1BB4

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

Color values

HEX#7B1BB4
RGBrgb(123, 27, 180)
HSLhsl(278, 74%, 41%)
HSVhsv(278, 85%, 71%)
CMYKcmyk(31.7%, 85%, 0%, 29.4%)
CIE-LABlab(34.58, 62.57, -60.53)
CIE-LCHlch(34.58, 87.05, 315.95°)
OKLaboklab(46.48% 0.1336 -0.1723)
OKLCHoklch(46.48% 0.218 307.8)
XYZxyz(16.7968, 8.2904, 43.8865)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1BB4 #54B41B
analogous
#2E1BB4 #7B1BB4 #B41BA0
triadic
#7B1BB4 #B47B1B #1BB47B
tetradic
#7B1BB4 #B42E1B #54B41B #1BA0B4
square
#7B1BB4 #B42E1B #54B41B #1BA0B4
split-complementary
#7B1BB4 #A0B41B #1BB42E
monochromatic
#320B4A #57137F #7B1BB4 #9D2DDF #B662E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B1BB4#FFFFFF#000000##FFFFFF
##7B1BB41.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)
#004EB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#71466B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b1bb4;
/* rgb */ color: rgb(123, 27, 180);
/* oklch */ color: oklch(46.5% 0.218 307.8);
Tailwind
colors: {
  custom: {
    50: '#a766cb',
    500: '#7b1bb4',
    950: '#000000',
  },
}
SCSS
$custom: #7b1bb4;
$custom-light: #a766cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1bb4",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 277.647,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46484,
    "c": 0.21801,
    "h": 307.8
  },
  "luminance": 0.0829
}

Semantic roles & 50–950 ramp

primary
#7B1BB4
secondary
#87CC5F
accent
#F1377C
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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