#7B5AE7#7B5AE7

#7B5AE7 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.7% C 0.203 H 289.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7B5AE7
RGBrgb(123, 90, 231)
HSLhsl(254, 75%, 63%)
HSVhsv(254, 61%, 91%)
CMYKcmyk(46.8%, 61%, 0%, 9.4%)
CIE-LABlab(48.63, 47.03, -67.18)
CIE-LCHlch(48.63, 82.00, 304.99°)
OKLaboklab(57.7% 0.0669 -0.1921)
OKLCHoklch(57.7% 0.203 289.2)
XYZxyz(26.2442, 17.2918, 77.5406)
Luminance0.1729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5AE7 #C6E75A
analogous
#5A7FE7 #7B5AE7 #C25AE7
triadic
#7B5AE7 #E77B5A #5AE77B
tetradic
#7B5AE7 #E75A7F #C6E75A #5AE7C2
square
#7B5AE7 #E75A7F #C6E75A #5AE7C2
split-complementary
#7B5AE7 #E7C25A #7FE75A
monochromatic
#3C19AD #5025DF #7B5AE7 #A68FEF #D0C5F7

Accessibility & contrast

On white

4.71
#7B5AE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7B5AE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5AE7
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5AE7#FFFFFF#000000##FFFFFF
##7B5AE71.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EC
Deuteranopia (green-blind)
#0070E4
Tritanopia (blue-blind)
#587B98
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7b5ae7;
/* rgb */ color: rgb(123, 90, 231);
/* oklch */ color: oklch(57.7% 0.203 289.2);
Tailwind
colors: {
  custom: {
    50: '#a98aef',
    500: '#7b5ae7',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ae7;
$custom-light: #a98aef;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ae7",
  "rgb": {
    "r": 123,
    "g": 90,
    "b": 231
  },
  "hsl": {
    "h": 254.043,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57704,
    "c": 0.20343,
    "h": 289.2
  },
  "luminance": 0.17293
}

Semantic roles & 50–950 ramp

primary
#7B5AE7
secondary
#DCE8B5
accent
#D70FA8
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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