#7B2DC8#7B2DC8

#7B2DC8 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.221 H 301.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7B2DC8
RGBrgb(123, 45, 200)
HSLhsl(270, 63%, 48%)
HSVhsv(270, 78%, 78%)
CMYKcmyk(38.5%, 77.5%, 0%, 21.6%)
CIE-LABlab(38.30, 60.99, -66.22)
CIE-LCHlch(38.30, 90.03, 312.65°)
OKLaboklab(49.58% 0.115 -0.1891)
OKLCHoklch(49.58% 0.221 301.3)
XYZxyz(19.5295, 10.2577, 55.5834)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DC8 #7AC82D
analogous
#2E2DC8 #7B2DC8 #C82DC7
triadic
#7B2DC8 #C87B2D #2DC87B
tetradic
#7B2DC8 #C82E2D #7AC82D #2DC7C8
square
#7B2DC8 #C82E2D #7AC82D #2DC7C8
split-complementary
#7B2DC8 #C7C82D #2DC82E
monochromatic
#3E1764 #5C2296 #7B2DC8 #9A59DA #B88BE5

Accessibility & contrast

On white

6.88
#7B2DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7B2DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B2DC8
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DC8#FFFFFF#000000##FFFFFF
##7B2DC81.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#6A567A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b2dc8;
/* rgb */ color: rgb(123, 45, 200);
/* oklch */ color: oklch(49.6% 0.221 301.3);
Tailwind
colors: {
  custom: {
    50: '#a86fda',
    500: '#7b2dc8',
    950: '#000000',
  },
}
SCSS
$custom: #7b2dc8;
$custom-light: #a86fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2dc8",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 270.194,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49584,
    "c": 0.22133,
    "h": 301.3
  },
  "luminance": 0.10258
}

Semantic roles & 50–950 ramp

primary
#7B2DC8
secondary
#A8CF82
accent
#E64193
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7B2DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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