#7F5DF5#7F5DF5

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

Color values

HEX#7F5DF5
RGBrgb(127, 93, 245)
HSLhsl(253, 88%, 66%)
HSVhsv(253, 62%, 96%)
CMYKcmyk(48.2%, 62%, 0%, 3.9%)
CIE-LABlab(50.61, 50.06, -71.80)
CIE-LCHlch(50.61, 87.53, 304.88°)
OKLaboklab(59.55% 0.068 -0.2056)
OKLCHoklch(59.55% 0.217 288.3)
XYZxyz(29.1434, 18.9320, 88.4872)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DF5 #D3F55D
analogous
#5D87F5 #7F5DF5 #CB5DF5
triadic
#7F5DF5 #F57F5D #5DF57F
tetradic
#7F5DF5 #F55D87 #D3F55D #5DF5CB
square
#7F5DF5 #F55D87 #D3F55D #5DF5CB
split-complementary
#7F5DF5 #F5CB5D #87F55D
monochromatic
#370DCB #5123F1 #7F5DF5 #AD97F9 #DAD0FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F5DF5#FFFFFF#000000##000000
##7F5DF51.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFA
Deuteranopia (green-blind)
#0075F2
Tritanopia (blue-blind)
#5781A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5df5;
/* rgb */ color: rgb(127, 93, 245);
/* oklch */ color: oklch(59.5% 0.217 288.3);
Tailwind
colors: {
  custom: {
    50: '#ad8cf9',
    500: '#7f5df5',
    950: '#000000',
  },
}
SCSS
$custom: #7f5df5;
$custom-light: #ad8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5df5",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 245
  },
  "hsl": {
    "h": 253.421,
    "s": 88.372,
    "l": 66.275
  },
  "oklch": {
    "l": 0.59548,
    "c": 0.21654,
    "h": 288.3
  },
  "luminance": 0.18933
}

Semantic roles & 50–950 ramp

primary
#7F5DF5
secondary
#E5F0BE
accent
#E501B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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