#7B2BAC#7B2BAC

#7B2BAC is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.2% C 0.196 H 308.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7B2BAC
RGBrgb(123, 43, 172)
HSLhsl(277, 60%, 42%)
HSVhsv(277, 75%, 67%)
CMYKcmyk(28.5%, 75%, 0%, 32.5%)
CIE-LABlab(35.83, 55.41, -53.74)
CIE-LCHlch(35.83, 77.19, 315.88°)
OKLaboklab(47.16% 0.1231 -0.1524)
OKLCHoklch(47.16% 0.196 308.9)
XYZxyz(16.4771, 8.9176, 39.8750)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2BAC #5CAC2B
analogous
#3A2BAC #7B2BAC #AC2B9D
triadic
#7B2BAC #AC7B2B #2BAC7B
tetradic
#7B2BAC #AC3A2B #5CAC2B #2B9DAC
square
#7B2BAC #AC3A2B #5CAC2B #2B9DAC
split-complementary
#7B2BAC #9DAC2B #2BAC3A
monochromatic
#35134A #581F7B #7B2BAC #9B44D0 #B575DC

Accessibility & contrast

On white

7.54
#7B2BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7B2BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2BAC
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2BAC#FFFFFF#000000##FFFFFF
##7B2BAC1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#744A6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2bac;
/* rgb */ color: rgb(123, 43, 172);
/* oklch */ color: oklch(47.2% 0.196 308.9);
Tailwind
colors: {
  custom: {
    50: '#a66dc6',
    500: '#7b2bac',
    950: '#000000',
  },
}
SCSS
$custom: #7b2bac;
$custom-light: #a66dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2bac",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 277.209,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47159,
    "c": 0.19591,
    "h": 308.9
  },
  "luminance": 0.08917
}

Semantic roles & 50–950 ramp

primary
#7B2BAC
secondary
#8FC46F
accent
#E34581
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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