#7D5EF5#7D5EF5

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

Color values

HEX#7D5EF5
RGBrgb(125, 94, 245)
HSLhsl(252, 88%, 66%)
HSVhsv(252, 62%, 96%)
CMYKcmyk(49%, 61.6%, 0%, 3.9%)
CIE-LABlab(50.64, 49.14, -71.76)
CIE-LCHlch(50.64, 86.97, 304.40°)
OKLaboklab(59.53% 0.0644 -0.2055)
OKLCHoklch(59.53% 0.215 287.4)
XYZxyz(28.9368, 18.9566, 88.5028)
Luminance0.1896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EF5 #D6F55E
analogous
#5E8BF5 #7D5EF5 #C95EF5
triadic
#7D5EF5 #F57D5E #5EF57D
tetradic
#7D5EF5 #F55E8B #D6F55E #5EF5C9
square
#7D5EF5 #F55E8B #D6F55E #5EF5C9
split-complementary
#7D5EF5 #F5C95E #8BF55E
monochromatic
#340DCC #4E24F1 #7D5EF5 #AC98F9 #DAD1FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D5EF5#FFFFFF#000000##000000
##7D5EF51.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)
#007CFA
Deuteranopia (green-blind)
#0074F2
Tritanopia (blue-blind)
#5382A1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7d5ef5;
/* rgb */ color: rgb(125, 94, 245);
/* oklch */ color: oklch(59.5% 0.215 287.4);
Tailwind
colors: {
  custom: {
    50: '#ab8df9',
    500: '#7d5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ef5;
$custom-light: #ab8df9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ef5",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 252.318,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59526,
    "c": 0.2154,
    "h": 287.4
  },
  "luminance": 0.18958
}

Semantic roles & 50–950 ramp

primary
#7D5EF5
secondary
#E6F0BF
accent
#E501B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7D5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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