#7B4CDE#7B4CDE

#7B4CDE is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.0% C 0.210 H 293.0°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7B4CDE
RGBrgb(123, 76, 222)
HSLhsl(259, 69%, 58%)
HSVhsv(259, 66%, 87%)
CMYKcmyk(44.6%, 65.8%, 0%, 12.9%)
CIE-LABlab(45.16, 52.14, -67.72)
CIE-LCHlch(45.16, 85.46, 307.60°)
OKLaboklab(54.98% 0.0821 -0.1937)
OKLCHoklch(54.98% 0.21 293)
XYZxyz(23.9340, 14.6530, 70.6604)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CDE #AFDE4C
analogous
#4C66DE #7B4CDE #C44CDE
triadic
#7B4CDE #DE7B4C #4CDE7B
tetradic
#7B4CDE #DE4C66 #AFDE4C #4CDEC4
square
#7B4CDE #DE4C66 #AFDE4C #4CDEC4
split-complementary
#7B4CDE #DEC44C #66DE4C
monochromatic
#421B94 #5925C8 #7B4CDE #A180E8 #C7B3F1

Accessibility & contrast

On white

5.34
#7B4CDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7B4CDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4CDE
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4CDE#FFFFFF#000000##FFFFFF
##7B4CDE1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE2
Deuteranopia (green-blind)
#0068DB
Tritanopia (blue-blind)
#5E6F8F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7b4cde;
/* rgb */ color: rgb(123, 76, 222);
/* oklch */ color: oklch(55.0% 0.210 293.0);
Tailwind
colors: {
  custom: {
    50: '#a981e9',
    500: '#7b4cde',
    950: '#000000',
  },
}
SCSS
$custom: #7b4cde;
$custom-light: #a981e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4cde",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 222
  },
  "hsl": {
    "h": 259.315,
    "s": 68.868,
    "l": 58.431
  },
  "oklch": {
    "l": 0.54985,
    "c": 0.21038,
    "h": 293
  },
  "luminance": 0.14654
}

Semantic roles & 50–950 ramp

primary
#7B4CDE
secondary
#CDE0A6
accent
#EC3CB3
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7B4CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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