#7F5FED#7F5FED

#7F5FED is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.3% C 0.204 H 289.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7F5FED
RGBrgb(127, 95, 237)
HSLhsl(254, 80%, 65%)
HSVhsv(254, 60%, 93%)
CMYKcmyk(46.4%, 59.9%, 0%, 7.1%)
CIE-LABlab(50.46, 46.71, -67.56)
CIE-LCHlch(50.46, 82.13, 304.66°)
OKLaboklab(59.27% 0.0665 -0.1931)
OKLCHoklch(59.27% 0.204 289)
XYZxyz(28.1263, 18.8098, 82.2530)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FED #CDED5F
analogous
#5F86ED #7F5FED #C65FED
triadic
#7F5FED #ED7F5F #5FED7F
tetradic
#7F5FED #ED5F86 #CDED5F #5FEDC6
square
#7F5FED #ED5F86 #CDED5F #5FEDC6
split-complementary
#7F5FED #EDC65F #86ED5F
monochromatic
#3B15BC #5328E7 #7F5FED #AB96F3 #D7CDF9

Accessibility & contrast

On white

4.41
#7F5FED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7F5FED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5FED
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5FED#FFFFFF#000000##000000
##7F5FED1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF2
Deuteranopia (green-blind)
#0075EA
Tritanopia (blue-blind)
#5C809D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5fed;
/* rgb */ color: rgb(127, 95, 237);
/* oklch */ color: oklch(59.3% 0.204 289.0);
Tailwind
colors: {
  custom: {
    50: '#ab8ef4',
    500: '#7f5fed',
    950: '#000000',
  },
}
SCSS
$custom: #7f5fed;
$custom-light: #ab8ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5fed",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 237
  },
  "hsl": {
    "h": 253.521,
    "s": 79.775,
    "l": 65.098
  },
  "oklch": {
    "l": 0.59266,
    "c": 0.20422,
    "h": 289
  },
  "luminance": 0.18811
}

Semantic roles & 50–950 ramp

primary
#7F5FED
secondary
#E1ECBC
accent
#DC09AD
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5FED

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

Preview Lab → · Contrast checker → · Palette generator →

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