#7D5AEE#7D5AEE

#7D5AEE is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.4% C 0.212 H 289.0°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7D5AEE
RGBrgb(125, 90, 238)
HSLhsl(254, 81%, 64%)
HSVhsv(254, 62%, 93%)
CMYKcmyk(47.5%, 62.2%, 0%, 6.7%)
CIE-LABlab(49.31, 49.37, -70.00)
CIE-LCHlch(49.31, 85.66, 305.20°)
OKLaboklab(58.4% 0.069 -0.2004)
OKLCHoklch(58.4% 0.212 289)
XYZxyz(27.5418, 17.8442, 82.8654)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5AEE #CBEE5A
analogous
#5A81EE #7D5AEE #C75AEE
triadic
#7D5AEE #EE7D5A #5AEE7D
tetradic
#7D5AEE #EE5A81 #CBEE5A #5AEEC7
square
#7D5AEE #EE5A81 #CBEE5A #5AEEC7
split-complementary
#7D5AEE #EEC75A #81EE5A
monochromatic
#3B13BA #5123E8 #7D5AEE #A991F4 #D4C9F9

Accessibility & contrast

On white

4.60
#7D5AEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7D5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5AEE
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5AEE#FFFFFF#000000##FFFFFF
##7D5AEE1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F3
Deuteranopia (green-blind)
#0072EB
Tritanopia (blue-blind)
#587D9C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d5aee;
/* rgb */ color: rgb(125, 90, 238);
/* oklch */ color: oklch(58.4% 0.212 289.0);
Tailwind
colors: {
  custom: {
    50: '#ab8af4',
    500: '#7d5aee',
    950: '#000000',
  },
}
SCSS
$custom: #7d5aee;
$custom-light: #ab8af4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5aee",
  "rgb": {
    "r": 125,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 254.189,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58401,
    "c": 0.21191,
    "h": 289
  },
  "luminance": 0.17845
}

Semantic roles & 50–950 ramp

primary
#7D5AEE
secondary
#DFECB8
accent
#DE08AB
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7D5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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