#7D5AFB#7D5AFB

#7D5AFB is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.4% C 0.228 H 287.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7D5AFB
RGBrgb(125, 90, 251)
HSLhsl(253, 95%, 67%)
HSVhsv(253, 64%, 98%)
CMYKcmyk(50.2%, 64.1%, 0%, 1.6%)
CIE-LABlab(50.26, 53.01, -75.72)
CIE-LCHlch(50.26, 92.43, 305.00°)
OKLaboklab(59.39% 0.0678 -0.2172)
OKLCHoklch(59.39% 0.228 287.3)
XYZxyz(29.5211, 18.6359, 93.2897)
Luminance0.1864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5AFB #D8FB5A
analogous
#5A88FB #7D5AFB #CD5AFB
triadic
#7D5AFB #FB7D5A #5AFB7D
tetradic
#7D5AFB #FB5A88 #D8FB5A #5AFBCD
square
#7D5AFB #FB5A88 #D8FB5A #5AFBCD
split-complementary
#7D5AFB #FBCD5A #88FB5A
monochromatic
#3205D5 #4E1EFA #7D5AFB #AC96FC #DBD2FE

Accessibility & contrast

On white

4.44
#7D5AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#7D5AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D5AFB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5AFB#FFFFFF#000000##000000
##7D5AFB1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#0073F8
Tritanopia (blue-blind)
#4E82A3
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7d5afb;
/* rgb */ color: rgb(125, 90, 251);
/* oklch */ color: oklch(59.4% 0.228 287.3);
Tailwind
colors: {
  custom: {
    50: '#ac8bfe',
    500: '#7d5afb',
    950: '#000000',
  },
}
SCSS
$custom: #7d5afb;
$custom-light: #ac8bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5afb",
  "rgb": {
    "r": 125,
    "g": 90,
    "b": 251
  },
  "hsl": {
    "h": 253.043,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59389,
    "c": 0.2275,
    "h": 287.3
  },
  "luminance": 0.18637
}

Semantic roles & 50–950 ramp

primary
#7D5AFB
secondary
#E7F2BF
accent
#E600B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7D5AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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