#7B1FB4#7B1FB4

#7B1FB4 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.8% C 0.215 H 307.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7B1FB4
RGBrgb(123, 31, 180)
HSLhsl(277, 71%, 41%)
HSVhsv(277, 83%, 71%)
CMYKcmyk(31.7%, 82.8%, 0%, 29.4%)
CIE-LABlab(34.98, 61.41, -59.88)
CIE-LCHlch(34.98, 85.77, 315.72°)
OKLaboklab(46.76% 0.131 -0.1704)
OKLCHoklch(46.76% 0.215 307.5)
XYZxyz(16.8948, 8.4865, 43.9192)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1FB4 #58B41F
analogous
#311FB4 #7B1FB4 #B41FA3
triadic
#7B1FB4 #B47B1F #1FB47B
tetradic
#7B1FB4 #B4311F #58B41F #1FA3B4
square
#7B1FB4 #B4311F #58B41F #1FA3B4
split-complementary
#7B1FB4 #A3B41F #1FB431
monochromatic
#340D4C #571680 #7B1FB4 #9C34DC #B568E5

Accessibility & contrast

On white

7.79
#7B1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7B1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1FB4
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1FB4#FFFFFF#000000##FFFFFF
##7B1FB41.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#71486C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b1fb4;
/* rgb */ color: rgb(123, 31, 180);
/* oklch */ color: oklch(46.8% 0.215 307.5);
Tailwind
colors: {
  custom: {
    50: '#a768cb',
    500: '#7b1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #7b1fb4;
$custom-light: #a768cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1fb4",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 277.047,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46759,
    "c": 0.21493,
    "h": 307.5
  },
  "luminance": 0.08486
}

Semantic roles & 50–950 ramp

primary
#7B1FB4
secondary
#8BCB64
accent
#ED3A7F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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