#7F5FFC#7F5FFC

#7F5FFC is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.4% C 0.223 H 287.1°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7F5FFC
RGBrgb(127, 95, 252)
HSLhsl(252, 96%, 68%)
HSVhsv(252, 62%, 99%)
CMYKcmyk(49.6%, 62.3%, 0%, 1.2%)
CIE-LABlab(51.52, 50.93, -74.21)
CIE-LCHlch(51.52, 90.00, 304.46°)
OKLaboklab(60.37% 0.0655 -0.2127)
OKLCHoklch(60.37% 0.223 287.1)
XYZxyz(30.4101, 19.7233, 94.2812)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FFC #DCFC5F
analogous
#5F8EFC #7F5FFC #CD5FFC
triadic
#7F5FFC #FC7F5F #5FFC7F
tetradic
#7F5FFC #FC5F8E #DCFC5F #5FFCCD
square
#7F5FFC #FC5F8E #DCFC5F #5FFCCD
split-complementary
#7F5FFC #FCCD5F #8EFC5F
monochromatic
#3004DC #4F23FB #7F5FFC #AF9BFD #DFD7FE

Accessibility & contrast

On white

4.25
#7F5FFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#7F5FFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5FFC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5FFC#FFFFFF#000000##000000
##7F5FFC1.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#0076F9
Tritanopia (blue-blind)
#5285A5
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7f5ffc;
/* rgb */ color: rgb(127, 95, 252);
/* oklch */ color: oklch(60.4% 0.223 287.1);
Tailwind
colors: {
  custom: {
    50: '#ad8efe',
    500: '#7f5ffc',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ffc;
$custom-light: #ad8efe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ffc",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 252
  },
  "hsl": {
    "h": 252.229,
    "s": 96.319,
    "l": 68.039
  },
  "oklch": {
    "l": 0.60372,
    "c": 0.22252,
    "h": 287.1
  },
  "luminance": 0.19725
}

Semantic roles & 50–950 ramp

primary
#7F5FFC
secondary
#EAF3C3
accent
#E600B7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7F5FFC

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

Preview Lab → · Contrast checker → · Palette generator →

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