#7B5CEB#7B5CEB

#7B5CEB is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.3% C 0.206 H 288.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7B5CEB
RGBrgb(123, 92, 235)
HSLhsl(253, 78%, 64%)
HSVhsv(253, 61%, 92%)
CMYKcmyk(47.7%, 60.9%, 0%, 7.8%)
CIE-LABlab(49.33, 47.04, -68.29)
CIE-LCHlch(49.33, 82.92, 304.56°)
OKLaboklab(58.31% 0.0646 -0.1954)
OKLCHoklch(58.31% 0.206 288.3)
XYZxyz(26.9866, 17.8623, 80.6070)
Luminance0.1786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CEB #CCEB5C
analogous
#5C85EB #7B5CEB #C35CEB
triadic
#7B5CEB #EB7B5C #5CEB7B
tetradic
#7B5CEB #EB5C85 #CCEB5C #5CEBC3
square
#7B5CEB #EB5C85 #CCEB5C #5CEBC3
split-complementary
#7B5CEB #EBC35C #85EB5C
monochromatic
#3916B6 #4F25E4 #7B5CEB #A793F2 #D3C9F8

Accessibility & contrast

On white

4.59
#7B5CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7B5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CEB
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CEB#FFFFFF#000000##FFFFFF
##7B5CEB1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0072E8
Tritanopia (blue-blind)
#557D9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7b5ceb;
/* rgb */ color: rgb(123, 92, 235);
/* oklch */ color: oklch(58.3% 0.206 288.3);
Tailwind
colors: {
  custom: {
    50: '#a98bf2',
    500: '#7b5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ceb;
$custom-light: #a98bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ceb",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 253.007,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.58306,
    "c": 0.20578,
    "h": 288.3
  },
  "luminance": 0.17863
}

Semantic roles & 50–950 ramp

primary
#7B5CEB
secondary
#E0EAB8
accent
#DA0BAD
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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