#7F5DF4#7F5DF4

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

Color values

HEX#7F5DF4
RGBrgb(127, 93, 244)
HSLhsl(254, 87%, 66%)
HSVhsv(254, 62%, 96%)
CMYKcmyk(48%, 61.9%, 0%, 4.3%)
CIE-LABlab(50.54, 49.78, -71.36)
CIE-LCHlch(50.54, 87.00, 304.90°)
OKLaboklab(59.47% 0.0681 -0.2043)
OKLCHoklch(59.47% 0.215 288.4)
XYZxyz(28.9912, 18.8711, 87.6853)
Luminance0.1887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DF4 #D2F45D
analogous
#5D86F4 #7F5DF4 #CA5DF4
triadic
#7F5DF4 #F47F5D #5DF47F
tetradic
#7F5DF4 #F45D86 #D2F45D #5DF4CA
square
#7F5DF4 #F45D86 #D2F45D #5DF4CA
split-complementary
#7F5DF4 #F4CA5D #86F45D
monochromatic
#380EC9 #5224F0 #7F5DF4 #AC96F8 #DAD0FC

Accessibility & contrast

On white

4.40
#7F5DF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#7F5DF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5DF4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DF4#FFFFFF#000000##000000
##7F5DF41.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f5df4;
/* rgb */ color: rgb(127, 93, 244);
/* oklch */ color: oklch(59.5% 0.215 288.4);
Tailwind
colors: {
  custom: {
    50: '#ac8cf9',
    500: '#7f5df4',
    950: '#000000',
  },
}
SCSS
$custom: #7f5df4;
$custom-light: #ac8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5df4",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 244
  },
  "hsl": {
    "h": 253.51,
    "s": 87.283,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59474,
    "c": 0.21533,
    "h": 288.4
  },
  "luminance": 0.18872
}

Semantic roles & 50–950 ramp

primary
#7F5DF4
secondary
#E4EFBE
accent
#E402B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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