#7B1EB3#7B1EB3

#7B1EB3 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.6% C 0.215 H 307.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7B1EB3
RGBrgb(123, 30, 179)
HSLhsl(277, 71%, 41%)
HSVhsv(277, 83%, 70%)
CMYKcmyk(31.3%, 83.2%, 0%, 29.8%)
CIE-LABlab(34.79, 61.50, -59.59)
CIE-LCHlch(34.79, 85.63, 315.90°)
OKLaboklab(46.61% 0.1319 -0.1696)
OKLCHoklch(46.61% 0.215 307.9)
XYZxyz(16.7676, 8.3944, 43.3761)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1EB3 #56B31E
analogous
#311EB3 #7B1EB3 #B31EA0
triadic
#7B1EB3 #B37B1E #1EB37B
tetradic
#7B1EB3 #B3311E #56B31E #1EA0B3
square
#7B1EB3 #B3311E #56B31E #1EA0B3
split-complementary
#7B1EB3 #A0B31E #1EB331
monochromatic
#330C4A #57157F #7B1EB3 #9C32DD #B666E5

Accessibility & contrast

On white

7.84
#7B1EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7B1EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1EB3
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1EB3#FFFFFF#000000##FFFFFF
##7B1EB31.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.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: #7b1eb3;
/* rgb */ color: rgb(123, 30, 179);
/* oklch */ color: oklch(46.6% 0.215 307.9);
Tailwind
colors: {
  custom: {
    50: '#a767cb',
    500: '#7b1eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7b1eb3;
$custom-light: #a767cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1eb3",
  "rgb": {
    "r": 123,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 277.45,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46605,
    "c": 0.21483,
    "h": 307.9
  },
  "luminance": 0.08394
}

Semantic roles & 50–950 ramp

primary
#7B1EB3
secondary
#89CB62
accent
#EE3A7E
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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