#7B2BCA#7B2BCA

#7B2BCA is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.6% C 0.225 H 301.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#7B2BCA
RGBrgb(123, 43, 202)
HSLhsl(270, 65%, 48%)
HSVhsv(270, 79%, 79%)
CMYKcmyk(39.1%, 78.7%, 0%, 20.8%)
CIE-LABlab(38.20, 62.21, -67.54)
CIE-LCHlch(38.20, 91.83, 312.65°)
OKLaboklab(49.57% 0.116 -0.193)
OKLCHoklch(49.57% 0.225 301)
XYZxyz(19.6903, 10.2028, 56.7976)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2BCA #7ACA2B
analogous
#2C2BCA #7B2BCA #CA2BC9
triadic
#7B2BCA #CA7B2B #2BCA7B
tetradic
#7B2BCA #CA2C2B #7ACA2B #2BC9CA
square
#7B2BCA #CA2C2B #7ACA2B #2BC9CA
split-complementary
#7B2BCA #C9CA2B #2BCA2C
monochromatic
#3E1665 #5C2098 #7B2BCA #9A57DB #B889E6

Accessibility & contrast

On white

6.91
#7B2BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7B2BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B2BCA
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2BCA#FFFFFF#000000##FFFFFF
##7B2BCA1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#69567B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b2bca;
/* rgb */ color: rgb(123, 43, 202);
/* oklch */ color: oklch(49.6% 0.225 301.0);
Tailwind
colors: {
  custom: {
    50: '#a86edb',
    500: '#7b2bca',
    950: '#000000',
  },
}
SCSS
$custom: #7b2bca;
$custom-light: #a86edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2bca",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 202
  },
  "hsl": {
    "h": 270.189,
    "s": 64.898,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49568,
    "c": 0.22517,
    "h": 301
  },
  "luminance": 0.10203
}

Semantic roles & 50–950 ramp

primary
#7B2BCA
secondary
#A8D081
accent
#E84093
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7B2BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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