#7F5CF8#7F5CF8

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

Color values

HEX#7F5CF8
RGBrgb(127, 92, 248)
HSLhsl(253, 92%, 67%)
HSVhsv(253, 63%, 97%)
CMYKcmyk(48.8%, 62.9%, 0%, 2.7%)
CIE-LABlab(50.62, 51.45, -73.45)
CIE-LCHlch(50.62, 89.68, 305.01°)
OKLaboklab(59.62% 0.0687 -0.2104)
OKLCHoklch(59.62% 0.221 288.1)
XYZxyz(29.5179, 18.9423, 90.8896)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CF8 #D5F85C
analogous
#5C87F8 #7F5CF8 #CD5CF8
triadic
#7F5CF8 #F87F5C #5CF87F
tetradic
#7F5CF8 #F85C87 #D5F85C #5CF8CD
square
#7F5CF8 #F85C87 #D5F85C #5CF8CD
split-complementary
#7F5CF8 #F8CD5C #87F85C
monochromatic
#3609D1 #5121F5 #7F5CF8 #AD97FB #DBD1FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F5CF8#FFFFFF#000000##000000
##7F5CF81.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)
#007CFD
Deuteranopia (green-blind)
#0074F5
Tritanopia (blue-blind)
#5582A2
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5cf8;
/* rgb */ color: rgb(127, 92, 248);
/* oklch */ color: oklch(59.6% 0.221 288.1);
Tailwind
colors: {
  custom: {
    50: '#ad8cfc',
    500: '#7f5cf8',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cf8;
$custom-light: #ad8cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cf8",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 248
  },
  "hsl": {
    "h": 253.462,
    "s": 91.765,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59625,
    "c": 0.22138,
    "h": 288.1
  },
  "luminance": 0.18944
}

Semantic roles & 50–950 ramp

primary
#7F5CF8
secondary
#E6F1BF
accent
#E600B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7F5CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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