#7B5DE4#7B5DE4

#7B5DE4 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.0% C 0.196 H 289.0°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7B5DE4
RGBrgb(123, 93, 228)
HSLhsl(253, 71%, 63%)
HSVhsv(253, 59%, 89%)
CMYKcmyk(46.1%, 59.2%, 0%, 10.6%)
CIE-LABlab(49.06, 44.50, -64.79)
CIE-LCHlch(49.06, 78.60, 304.48°)
OKLaboklab(57.95% 0.0639 -0.1851)
OKLCHoklch(57.95% 0.196 289)
XYZxyz(26.0823, 17.6401, 75.4143)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5DE4 #C6E45D
analogous
#5D82E4 #7B5DE4 #BE5DE4
triadic
#7B5DE4 #E47B5D #5DE47B
tetradic
#7B5DE4 #E45D82 #C6E45D #5DE4BE
square
#7B5DE4 #E45D82 #C6E45D #5DE4BE
split-complementary
#7B5DE4 #E4BE5D #82E45D
monochromatic
#3C1CAA #5029DB #7B5DE4 #A691ED #D0C6F5

Accessibility & contrast

On white

4.64
#7B5DE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7B5DE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5DE4
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5DE4#FFFFFF#000000##FFFFFF
##7B5DE41.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#5A7C98
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7b5de4;
/* rgb */ color: rgb(123, 93, 228);
/* oklch */ color: oklch(58.0% 0.196 289.0);
Tailwind
colors: {
  custom: {
    50: '#a88ced',
    500: '#7b5de4',
    950: '#000000',
  },
}
SCSS
$custom: #7b5de4;
$custom-light: #a88ced;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5de4",
  "rgb": {
    "r": 123,
    "g": 93,
    "b": 228
  },
  "hsl": {
    "h": 253.333,
    "s": 71.429,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57953,
    "c": 0.19579,
    "h": 289
  },
  "luminance": 0.17641
}

Semantic roles & 50–950 ramp

primary
#7B5DE4
secondary
#DCE7B6
accent
#D312A8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7B5DE4

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

Preview Lab → · Contrast checker → · Palette generator →

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