#7D5EF1#7D5EF1

#7D5EF1 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.2% C 0.210 H 287.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7D5EF1
RGBrgb(125, 94, 241)
HSLhsl(253, 84%, 66%)
HSVhsv(253, 61%, 95%)
CMYKcmyk(48.1%, 61%, 0%, 5.5%)
CIE-LABlab(50.35, 48.00, -69.99)
CIE-LCHlch(50.35, 84.87, 304.45°)
OKLaboklab(59.23% 0.0647 -0.2003)
OKLCHoklch(59.23% 0.211 287.9)
XYZxyz(28.3327, 18.7150, 85.3215)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EF1 #D2F15E
analogous
#5E88F1 #7D5EF1 #C65EF1
triadic
#7D5EF1 #F17D5E #5EF17D
tetradic
#7D5EF1 #F15E88 #D2F15E #5EF1C6
square
#7D5EF1 #F15E88 #D2F15E #5EF1C6
split-complementary
#7D5EF1 #F1C65E #88F15E
monochromatic
#3711C4 #5026EC #7D5EF1 #AA96F6 #D8CFFB

Accessibility & contrast

On white

4.43
#7D5EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#7D5EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D5EF1
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5EF1#FFFFFF#000000##000000
##7D5EF11.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF6
Deuteranopia (green-blind)
#0074EE
Tritanopia (blue-blind)
#55819F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7d5ef1;
/* rgb */ color: rgb(125, 94, 241);
/* oklch */ color: oklch(59.2% 0.210 287.9);
Tailwind
colors: {
  custom: {
    50: '#ab8df7',
    500: '#7d5ef1',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ef1;
$custom-light: #ab8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ef1",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 241
  },
  "hsl": {
    "h": 252.653,
    "s": 84,
    "l": 65.686
  },
  "oklch": {
    "l": 0.59229,
    "c": 0.2105,
    "h": 287.9
  },
  "luminance": 0.18716
}

Semantic roles & 50–950 ramp

primary
#7D5EF1
secondary
#E4EEBD
accent
#E005B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7D5EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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