#7D5EF2#7D5EF2

#7D5EF2 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.3% C 0.212 H 287.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7D5EF2
RGBrgb(125, 94, 242)
HSLhsl(253, 85%, 66%)
HSVhsv(253, 61%, 95%)
CMYKcmyk(48.3%, 61.2%, 0%, 5.1%)
CIE-LABlab(50.42, 48.29, -70.43)
CIE-LCHlch(50.42, 85.39, 304.43°)
OKLaboklab(59.3% 0.0647 -0.2016)
OKLCHoklch(59.3% 0.212 287.8)
XYZxyz(28.4825, 18.7749, 86.1103)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EF2 #D3F25E
analogous
#5E89F2 #7D5EF2 #C75EF2
triadic
#7D5EF2 #F27D5E #5EF27D
tetradic
#7D5EF2 #F25E89 #D3F25E #5EF2C7
square
#7D5EF2 #F25E89 #D3F25E #5EF2C7
split-complementary
#7D5EF2 #F2C75E #89F25E
monochromatic
#3610C6 #4F25ED #7D5EF2 #AB97F7 #D8CFFB

Accessibility & contrast

On white

4.42
#7D5EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7D5EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D5EF2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5EF2#FFFFFF#000000##000000
##7D5EF21.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d5ef2;
/* rgb */ color: rgb(125, 94, 242);
/* oklch */ color: oklch(59.3% 0.212 287.8);
Tailwind
colors: {
  custom: {
    50: '#ab8df7',
    500: '#7d5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ef2;
$custom-light: #ab8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ef2",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 252.568,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.59303,
    "c": 0.21173,
    "h": 287.8
  },
  "luminance": 0.18776
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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