#7B2DC7#7B2DC7

#7B2DC7 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.5% C 0.220 H 301.5°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7B2DC7
RGBrgb(123, 45, 199)
HSLhsl(270, 63%, 48%)
HSVhsv(270, 77%, 78%)
CMYKcmyk(38.2%, 77.4%, 0%, 22%)
CIE-LABlab(38.22, 60.76, -65.77)
CIE-LCHlch(38.22, 89.54, 312.73°)
OKLaboklab(49.5% 0.1152 -0.1878)
OKLCHoklch(49.5% 0.22 301.5)
XYZxyz(19.4131, 10.2111, 54.9699)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DC7 #79C72D
analogous
#2E2DC7 #7B2DC7 #C72DC6
triadic
#7B2DC7 #C77B2D #2DC77B
tetradic
#7B2DC7 #C72E2D #79C72D #2DC6C7
square
#7B2DC7 #C72E2D #79C72D #2DC6C7
split-complementary
#7B2DC7 #C6C72D #2DC72E
monochromatic
#3D1663 #5C2295 #7B2DC7 #9958D9 #B88AE5

Accessibility & contrast

On white

6.90
#7B2DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7B2DC7
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DC7#FFFFFF#000000##FFFFFF
##7B2DC71.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CB
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#6A5679
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b2dc7;
/* rgb */ color: rgb(123, 45, 199);
/* oklch */ color: oklch(49.5% 0.220 301.5);
Tailwind
colors: {
  custom: {
    50: '#a86fd9',
    500: '#7b2dc7',
    950: '#000000',
  },
}
SCSS
$custom: #7b2dc7;
$custom-light: #a86fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2dc7",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 270.39,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49501,
    "c": 0.22035,
    "h": 301.5
  },
  "luminance": 0.10211
}

Semantic roles & 50–950 ramp

primary
#7B2DC7
secondary
#A7CE81
accent
#E64293
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7B2DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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