#7B5AEA#7B5AEA

#7B5AEA is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 57.9% C 0.207 H 288.8°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7B5AEA
RGBrgb(123, 90, 234)
HSLhsl(254, 77%, 64%)
HSVhsv(254, 62%, 92%)
CMYKcmyk(47.4%, 61.5%, 0%, 8.2%)
CIE-LABlab(48.84, 47.87, -68.52)
CIE-LCHlch(48.84, 83.59, 304.94°)
OKLaboklab(57.93% 0.0667 -0.1961)
OKLCHoklch(57.93% 0.207 288.8)
XYZxyz(26.6716, 17.4627, 79.7913)
Luminance0.1746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5AEA #C9EA5A
analogous
#5A81EA #7B5AEA #C35AEA
triadic
#7B5AEA #EA7B5A #5AEA7B
tetradic
#7B5AEA #EA5A81 #C9EA5A #5AEAC3
square
#7B5AEA #EA5A81 #C9EA5A #5AEAC3
split-complementary
#7B5AEA #EAC35A #81EA5A
monochromatic
#3B17B3 #5024E3 #7B5AEA #A690F1 #D2C7F8

Accessibility & contrast

On white

4.67
#7B5AEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#7B5AEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5AEA
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5AEA#FFFFFF#000000##FFFFFF
##7B5AEA1.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EF
Deuteranopia (green-blind)
#0070E7
Tritanopia (blue-blind)
#567C9A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7b5aea;
/* rgb */ color: rgb(123, 90, 234);
/* oklch */ color: oklch(57.9% 0.207 288.8);
Tailwind
colors: {
  custom: {
    50: '#a98af2',
    500: '#7b5aea',
    950: '#000000',
  },
}
SCSS
$custom: #7b5aea;
$custom-light: #a98af2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5aea",
  "rgb": {
    "r": 123,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 253.75,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57926,
    "c": 0.20711,
    "h": 288.8
  },
  "luminance": 0.17464
}

Semantic roles & 50–950 ramp

primary
#7B5AEA
secondary
#DEE9B6
accent
#DA0CAA
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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