#7D5EF4#7D5EF4

#7D5EF4 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.5% C 0.214 H 287.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7D5EF4
RGBrgb(125, 94, 244)
HSLhsl(252, 87%, 66%)
HSVhsv(252, 61%, 96%)
CMYKcmyk(48.8%, 61.5%, 0%, 4.3%)
CIE-LABlab(50.56, 48.85, -71.32)
CIE-LCHlch(50.56, 86.45, 304.41°)
OKLaboklab(59.45% 0.0645 -0.2042)
OKLCHoklch(59.45% 0.214 287.5)
XYZxyz(28.7845, 18.8957, 87.7010)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EF4 #D5F45E
analogous
#5E8AF4 #7D5EF4 #C85EF4
triadic
#7D5EF4 #F47D5E #5EF47D
tetradic
#7D5EF4 #F45E8A #D5F45E #5EF4C8
square
#7D5EF4 #F45E8A #D5F45E #5EF4C8
split-complementary
#7D5EF4 #F4C85E #8AF45E
monochromatic
#350ECA #4F25F0 #7D5EF4 #AB97F8 #DAD1FC

Accessibility & contrast

On white

4.39
#7D5EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#7D5EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D5EF4
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5EF4#FFFFFF#000000##000000
##7D5EF41.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF9
Deuteranopia (green-blind)
#0074F1
Tritanopia (blue-blind)
#5382A0
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7d5ef4;
/* rgb */ color: rgb(125, 94, 244);
/* oklch */ color: oklch(59.5% 0.214 287.5);
Tailwind
colors: {
  custom: {
    50: '#ab8df9',
    500: '#7d5ef4',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ef4;
$custom-light: #ab8df9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ef4",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 252.4,
    "s": 87.209,
    "l": 66.275
  },
  "oklch": {
    "l": 0.59452,
    "c": 0.21418,
    "h": 287.5
  },
  "luminance": 0.18897
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D5EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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