#7B4CCA#7B4CCA

#7B4CCA is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.5% C 0.187 H 296.8°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#7B4CCA
RGBrgb(123, 76, 202)
HSLhsl(262, 54%, 55%)
HSVhsv(262, 62%, 79%)
CMYKcmyk(39.1%, 62.4%, 0%, 20.8%)
CIE-LABlab(43.72, 46.83, -58.58)
CIE-LCHlch(43.72, 74.99, 308.64°)
OKLaboklab(53.49% 0.0841 -0.1668)
OKLCHoklch(53.49% 0.187 296.8)
XYZxyz(21.4107, 13.6437, 57.3711)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CCA #9BCA4C
analogous
#4C5CCA #7B4CCA #BA4CCA
triadic
#7B4CCA #CA7B4C #4CCA7B
tetradic
#7B4CCA #CA4C5C #9BCA4C #4CCABA
square
#7B4CCA #CA4C5C #9BCA4C #4CCABA
split-complementary
#7B4CCA #CABA4C #5CCA4C
monochromatic
#432478 #5D32A7 #7B4CCA #9E7BD8 #C1AAE6

Accessibility & contrast

On white

5.63
#7B4CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#7B4CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4CCA
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4CCA#FFFFFF#000000##FFFFFF
##7B4CCA1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#0166C7
Tritanopia (blue-blind)
#686884
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7b4cca;
/* rgb */ color: rgb(123, 76, 202);
/* oklch */ color: oklch(53.5% 0.187 296.8);
Tailwind
colors: {
  custom: {
    50: '#a680db',
    500: '#7b4cca',
    950: '#000000',
  },
}
SCSS
$custom: #7b4cca;
$custom-light: #a680db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4cca",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 202
  },
  "hsl": {
    "h": 262.381,
    "s": 54.31,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53493,
    "c": 0.18682,
    "h": 296.8
  },
  "luminance": 0.13644
}

Semantic roles & 50–950 ramp

primary
#7B4CCA
secondary
#C0D49E
accent
#DE4AA7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B4CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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