#7B5AE6#7B5AE6

#7B5AE6 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.6% C 0.202 H 289.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7B5AE6
RGBrgb(123, 90, 230)
HSLhsl(254, 74%, 63%)
HSVhsv(254, 61%, 90%)
CMYKcmyk(46.5%, 60.9%, 0%, 9.8%)
CIE-LABlab(48.56, 46.75, -66.73)
CIE-LCHlch(48.56, 81.48, 305.01°)
OKLaboklab(57.63% 0.067 -0.1908)
OKLCHoklch(57.63% 0.202 289.3)
XYZxyz(26.1034, 17.2354, 76.7990)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5AE6 #C5E65A
analogous
#5A7FE6 #7B5AE6 #C15AE6
triadic
#7B5AE6 #E67B5A #5AE67B
tetradic
#7B5AE6 #E65A7F #C5E65A #5AE6C1
square
#7B5AE6 #E65A7F #C5E65A #5AE6C1
split-complementary
#7B5AE6 #E6C15A #7FE65A
monochromatic
#3C1AAC #5025DE #7B5AE6 #A68FEE #D0C4F6

Accessibility & contrast

On white

4.72
#7B5AE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#7B5AE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5AE6
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5AE6#FFFFFF#000000##FFFFFF
##7B5AE61.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EA
Deuteranopia (green-blind)
#0070E3
Tritanopia (blue-blind)
#597B98
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7b5ae6;
/* rgb */ color: rgb(123, 90, 230);
/* oklch */ color: oklch(57.6% 0.202 289.3);
Tailwind
colors: {
  custom: {
    50: '#a98aef',
    500: '#7b5ae6',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ae6;
$custom-light: #a98aef;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ae6",
  "rgb": {
    "r": 123,
    "g": 90,
    "b": 230
  },
  "hsl": {
    "h": 254.143,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57631,
    "c": 0.20221,
    "h": 289.3
  },
  "luminance": 0.17236
}

Semantic roles & 50–950 ramp

primary
#7B5AE6
secondary
#DBE7B5
accent
#D610A7
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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