#7B5DDD#7B5DDD

#7B5DDD is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.5% C 0.187 H 290.0°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7B5DDD
RGBrgb(123, 93, 221)
HSLhsl(254, 65%, 62%)
HSVhsv(254, 58%, 87%)
CMYKcmyk(44.3%, 57.9%, 0%, 13.3%)
CIE-LABlab(48.59, 42.53, -61.59)
CIE-LCHlch(48.59, 74.85, 304.63°)
OKLaboklab(57.46% 0.0641 -0.1757)
OKLCHoklch(57.46% 0.187 290)
XYZxyz(25.1302, 17.2592, 70.3999)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5DDD #BFDD5D
analogous
#5D7FDD #7B5DDD #BB5DDD
triadic
#7B5DDD #DD7B5D #5DDD7B
tetradic
#7B5DDD #DD5D7F #BFDD5D #5DDDBB
square
#7B5DDD #DD5D7F #BFDD5D #5DDDBB
split-complementary
#7B5DDD #DDBB5D #7FDD5D
monochromatic
#3F219E #532CD1 #7B5DDD #A490E8 #CDC2F2

Accessibility & contrast

On white

4.72
#7B5DDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#7B5DDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5DDD
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5DDD#FFFFFF#000000##FFFFFF
##7B5DDD1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E1
Deuteranopia (green-blind)
#0770DA
Tritanopia (blue-blind)
#5E7A94
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7b5ddd;
/* rgb */ color: rgb(123, 93, 221);
/* oklch */ color: oklch(57.5% 0.187 290.0);
Tailwind
colors: {
  custom: {
    50: '#a78ce8',
    500: '#7b5ddd',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ddd;
$custom-light: #a78ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ddd",
  "rgb": {
    "r": 123,
    "g": 93,
    "b": 221
  },
  "hsl": {
    "h": 254.063,
    "s": 65.306,
    "l": 61.569
  },
  "oklch": {
    "l": 0.57458,
    "c": 0.187,
    "h": 290
  },
  "luminance": 0.1726
}

Semantic roles & 50–950 ramp

primary
#7B5DDD
secondary
#D8E3B3
accent
#CD18A3
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7B5DDD

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

Preview Lab → · Contrast checker → · Palette generator →

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