#7B5AF6#7B5AF6

#7B5AF6 is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 58.8% C 0.222 H 287.2°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7B5AF6
RGBrgb(123, 90, 246)
HSLhsl(253, 90%, 66%)
HSVhsv(253, 63%, 96%)
CMYKcmyk(50%, 63.4%, 0%, 3.5%)
CIE-LABlab(49.71, 51.26, -73.83)
CIE-LCHlch(49.71, 89.88, 304.77°)
OKLaboklab(58.83% 0.0657 -0.2117)
OKLCHoklch(58.83% 0.222 287.2)
XYZxyz(28.4542, 18.1758, 89.1799)
Luminance0.1818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5AF6 #D5F65A
analogous
#5A87F6 #7B5AF6 #C95AF6
triadic
#7B5AF6 #F67B5A #5AF67B
tetradic
#7B5AF6 #F65A87 #D5F65A #5AF6C9
square
#7B5AF6 #F65A87 #D5F65A #5AF6C9
split-complementary
#7B5AF6 #F6C95A #87F65A
monochromatic
#340BCB #4D20F3 #7B5AF6 #A994F9 #D8CEFC

Accessibility & contrast

On white

4.53
#7B5AF6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#7B5AF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B5AF6
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5AF6#FFFFFF#000000##000000
##7B5AF61.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFB
Deuteranopia (green-blind)
#0072F3
Tritanopia (blue-blind)
#4E80A0
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7b5af6;
/* rgb */ color: rgb(123, 90, 246);
/* oklch */ color: oklch(58.8% 0.222 287.2);
Tailwind
colors: {
  custom: {
    50: '#aa8afa',
    500: '#7b5af6',
    950: '#000000',
  },
}
SCSS
$custom: #7b5af6;
$custom-light: #aa8afa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5af6",
  "rgb": {
    "r": 123,
    "g": 90,
    "b": 246
  },
  "hsl": {
    "h": 252.692,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.58832,
    "c": 0.22165,
    "h": 287.2
  },
  "luminance": 0.18177
}

Semantic roles & 50–950 ramp

primary
#7B5AF6
secondary
#E5F0BC
accent
#E600B5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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