#7B5CEA#7B5CEA

#7B5CEA is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.2% C 0.205 H 288.4°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7B5CEA
RGBrgb(123, 92, 234)
HSLhsl(253, 77%, 64%)
HSVhsv(253, 61%, 92%)
CMYKcmyk(47.4%, 60.7%, 0%, 8.2%)
CIE-LABlab(49.26, 46.76, -67.84)
CIE-LCHlch(49.26, 82.39, 304.58°)
OKLaboklab(58.23% 0.0646 -0.1941)
OKLCHoklch(58.23% 0.205 288.4)
XYZxyz(26.8425, 17.8046, 79.8482)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CEA #CBEA5C
analogous
#5C84EA #7B5CEA #C25CEA
triadic
#7B5CEA #EA7B5C #5CEA7B
tetradic
#7B5CEA #EA5C84 #CBEA5C #5CEAC2
square
#7B5CEA #EA5C84 #CBEA5C #5CEAC2
split-complementary
#7B5CEA #EAC25C #84EA5C
monochromatic
#3A17B4 #4F26E3 #7B5CEA #A792F1 #D3C8F8

Accessibility & contrast

On white

4.60
#7B5CEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7B5CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CEA
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CEA#FFFFFF#000000##FFFFFF
##7B5CEA1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EF
Deuteranopia (green-blind)
#0071E7
Tritanopia (blue-blind)
#567D9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7b5cea;
/* rgb */ color: rgb(123, 92, 234);
/* oklch */ color: oklch(58.2% 0.205 288.4);
Tailwind
colors: {
  custom: {
    50: '#a98bf2',
    500: '#7b5cea',
    950: '#000000',
  },
}
SCSS
$custom: #7b5cea;
$custom-light: #a98bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5cea",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 253.099,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58232,
    "c": 0.20455,
    "h": 288.4
  },
  "luminance": 0.17806
}

Semantic roles & 50–950 ramp

primary
#7B5CEA
secondary
#DFEAB8
accent
#D90CAD
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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