#7B1FB3#7B1FB3

#7B1FB3 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.7% C 0.214 H 307.8°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7B1FB3
RGBrgb(123, 31, 179)
HSLhsl(277, 70%, 41%)
HSVhsv(277, 83%, 70%)
CMYKcmyk(31.3%, 82.7%, 0%, 29.8%)
CIE-LABlab(34.89, 61.19, -59.42)
CIE-LCHlch(34.89, 85.30, 315.84°)
OKLaboklab(46.68% 0.1312 -0.1691)
OKLCHoklch(46.68% 0.214 307.8)
XYZxyz(16.7933, 8.4459, 43.3846)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1FB3 #57B31F
analogous
#311FB3 #7B1FB3 #B31FA1
triadic
#7B1FB3 #B37B1F #1FB37B
tetradic
#7B1FB3 #B3311F #57B31F #1FA1B3
square
#7B1FB3 #B3311F #57B31F #1FA1B3
split-complementary
#7B1FB3 #A1B31F #1FB331
monochromatic
#330D4B #57167F #7B1FB3 #9C33DC #B568E5

Accessibility & contrast

On white

7.81
#7B1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7B1FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1FB3
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1FB3#FFFFFF#000000##FFFFFF
##7B1FB31.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#72476B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b1fb3;
/* rgb */ color: rgb(123, 31, 179);
/* oklch */ color: oklch(46.7% 0.214 307.8);
Tailwind
colors: {
  custom: {
    50: '#a768cb',
    500: '#7b1fb3',
    950: '#000000',
  },
}
SCSS
$custom: #7b1fb3;
$custom-light: #a768cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1fb3",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 277.297,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46677,
    "c": 0.21403,
    "h": 307.8
  },
  "luminance": 0.08446
}

Semantic roles & 50–950 ramp

primary
#7B1FB3
secondary
#8ACA64
accent
#ED3B7E
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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