#7D5BEA#7D5BEA

#7D5BEA is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.3% C 0.206 H 289.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7D5BEA
RGBrgb(125, 91, 234)
HSLhsl(254, 77%, 64%)
HSVhsv(254, 61%, 92%)
CMYKcmyk(46.6%, 61.1%, 0%, 8.2%)
CIE-LABlab(49.23, 47.70, -67.88)
CIE-LCHlch(49.23, 82.97, 305.10°)
OKLaboklab(58.26% 0.0683 -0.1941)
OKLCHoklch(58.26% 0.206 289.4)
XYZxyz(27.0456, 17.7816, 79.8331)
Luminance0.1778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5BEA #C8EA5B
analogous
#5B80EA #7D5BEA #C45BEA
triadic
#7D5BEA #EA7D5B #5BEA7D
tetradic
#7D5BEA #EA5B80 #C8EA5B #5BEAC4
square
#7D5BEA #EA5B80 #C8EA5B #5BEAC4
split-complementary
#7D5BEA #EAC45B #80EA5B
monochromatic
#3C17B4 #5225E3 #7D5BEA #A891F1 #D3C8F8

Accessibility & contrast

On white

4.61
#7D5BEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7D5BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5BEA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5BEA#FFFFFF#000000##FFFFFF
##7D5BEA1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EF
Deuteranopia (green-blind)
#0072E7
Tritanopia (blue-blind)
#5A7C9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d5bea;
/* rgb */ color: rgb(125, 91, 234);
/* oklch */ color: oklch(58.3% 0.206 289.4);
Tailwind
colors: {
  custom: {
    50: '#aa8bf2',
    500: '#7d5bea',
    950: '#000000',
  },
}
SCSS
$custom: #7d5bea;
$custom-light: #aa8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5bea",
  "rgb": {
    "r": 125,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 254.266,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58256,
    "c": 0.20577,
    "h": 289.4
  },
  "luminance": 0.17783
}

Semantic roles & 50–950 ramp

primary
#7D5BEA
secondary
#DEEAB7
accent
#DA0CA9
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7D5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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