#7B2FB1#7B2FB1

#7B2FB1 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.196 H 307.1°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7B2FB1
RGBrgb(123, 47, 177)
HSLhsl(275, 58%, 44%)
HSVhsv(275, 73%, 69%)
CMYKcmyk(30.5%, 73.4%, 0%, 30.6%)
CIE-LABlab(36.78, 54.88, -55.17)
CIE-LCHlch(36.78, 77.82, 314.85°)
OKLaboklab(47.95% 0.1183 -0.1567)
OKLCHoklch(47.95% 0.196 307.1)
XYZxyz(17.1190, 9.4185, 42.5026)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FB1 #65B12F
analogous
#3A2FB1 #7B2FB1 #B12FA6
triadic
#7B2FB1 #B17B2F #2FB17B
tetradic
#7B2FB1 #B13A2F #65B12F #2FA6B1
square
#7B2FB1 #B13A2F #65B12F #2FA6B1
split-complementary
#7B2FB1 #A6B12F #2FB13A
monochromatic
#381550 #592281 #7B2FB1 #9A4DD0 #B57EDD

Accessibility & contrast

On white

7.28
#7B2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7B2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FB1
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FB1#FFFFFF#000000##FFFFFF
##7B2FB11.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#724E6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2fb1;
/* rgb */ color: rgb(123, 47, 177);
/* oklch */ color: oklch(47.9% 0.196 307.1);
Tailwind
colors: {
  custom: {
    50: '#a66fc9',
    500: '#7b2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fb1;
$custom-light: #a66fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fb1",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 275.077,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4795,
    "c": 0.19634,
    "h": 307.1
  },
  "luminance": 0.09418
}

Semantic roles & 50–950 ramp

primary
#7B2FB1
secondary
#97C576
accent
#E14787
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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