#7B2DCA#7B2DCA

#7B2DCA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.223 H 300.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7B2DCA
RGBrgb(123, 45, 202)
HSLhsl(270, 64%, 48%)
HSVhsv(270, 78%, 79%)
CMYKcmyk(39.1%, 77.7%, 0%, 20.8%)
CIE-LABlab(38.47, 61.46, -67.11)
CIE-LCHlch(38.47, 91.00, 312.48°)
OKLaboklab(49.75% 0.1144 -0.1918)
OKLCHoklch(49.75% 0.223 300.8)
XYZxyz(19.7648, 10.3518, 56.8225)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DCA #7CCA2D
analogous
#2D2DCA #7B2DCA #C92DCA
triadic
#7B2DCA #CA7B2D #2DCA7B
tetradic
#7B2DCA #CA2D2D #7CCA2D #2DCAC9
square
#7B2DCA #CA2D2D #7CCA2D #2DCAC9
split-complementary
#7B2DCA #CAC92D #2DCA2D
monochromatic
#3E1766 #5D2298 #7B2DCA #9A5ADA #B88CE5

Accessibility & contrast

On white

6.84
#7B2DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7B2DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B2DCA
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DCA#FFFFFF#000000##FFFFFF
##7B2DCA1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#69577B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7b2dca;
/* rgb */ color: rgb(123, 45, 202);
/* oklch */ color: oklch(49.8% 0.223 300.8);
Tailwind
colors: {
  custom: {
    50: '#a86fdb',
    500: '#7b2dca',
    950: '#000000',
  },
}
SCSS
$custom: #7b2dca;
$custom-light: #a86fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2dca",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 269.809,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49751,
    "c": 0.22331,
    "h": 300.8
  },
  "luminance": 0.10352
}

Semantic roles & 50–950 ramp

primary
#7B2DCA
secondary
#AACF83
accent
#E74194
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7B2DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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