#7D5FF2#7D5FF2

#7D5FF2 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.5% C 0.210 H 287.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#7D5FF2
RGBrgb(125, 95, 242)
HSLhsl(252, 85%, 66%)
HSVhsv(252, 61%, 95%)
CMYKcmyk(48.3%, 60.7%, 0%, 5.1%)
CIE-LABlab(50.63, 47.73, -70.09)
CIE-LCHlch(50.63, 84.80, 304.25°)
OKLaboklab(59.46% 0.0636 -0.2006)
OKLCHoklch(59.46% 0.21 287.6)
XYZxyz(28.5720, 18.9539, 86.1402)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5FF2 #D4F25F
analogous
#5F8AF2 #7D5FF2 #C65FF2
triadic
#7D5FF2 #F27D5F #5FF27D
tetradic
#7D5FF2 #F25F8A #D4F25F #5FF2C6
square
#7D5FF2 #F25F8A #D4F25F #5FF2C6
split-complementary
#7D5FF2 #F2C65F #8AF25F
monochromatic
#3510C6 #4F26ED #7D5FF2 #AB98F7 #D9D0FB

Accessibility & contrast

On white

4.38
#7D5FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#7D5FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D5FF2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5FF2#FFFFFF#000000##000000
##7D5FF21.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#0075EF
Tritanopia (blue-blind)
#5582A0
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7d5ff2;
/* rgb */ color: rgb(125, 95, 242);
/* oklch */ color: oklch(59.5% 0.210 287.6);
Tailwind
colors: {
  custom: {
    50: '#ab8ef7',
    500: '#7d5ff2',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ff2;
$custom-light: #ab8ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ff2",
  "rgb": {
    "r": 125,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 252.245,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59457,
    "c": 0.21046,
    "h": 287.6
  },
  "luminance": 0.18955
}

Semantic roles & 50–950 ramp

primary
#7D5FF2
secondary
#E5EFBE
accent
#E104B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7D5FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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