#7F5FE7#7F5FE7

#7F5FE7 is a mid, vivid violet. Relative luminance 0.185; OKLCH L 58.8% C 0.197 H 289.8°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7F5FE7
RGBrgb(127, 95, 231)
HSLhsl(254, 74%, 64%)
HSVhsv(254, 59%, 91%)
CMYKcmyk(45%, 58.9%, 0%, 9.4%)
CIE-LABlab(50.06, 45.03, -64.85)
CIE-LCHlch(50.06, 78.95, 304.78°)
OKLaboklab(58.84% 0.0667 -0.1851)
OKLCHoklch(58.84% 0.197 289.8)
XYZxyz(27.2643, 18.4650, 77.7134)
Luminance0.1847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FE7 #C7E75F
analogous
#5F83E7 #7F5FE7 #C35FE7
triadic
#7F5FE7 #E77F5F #5FE77F
tetradic
#7F5FE7 #E75F83 #C7E75F #5FE7C3
square
#7F5FE7 #E75F83 #C7E75F #5FE7C3
split-complementary
#7F5FE7 #E7C35F #83E75F
monochromatic
#3E1BB1 #542ADF #7F5FE7 #AA94EF #D4C9F7

Accessibility & contrast

On white

4.47
#7F5FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#7F5FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5FE7
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5FE7#FFFFFF#000000##000000
##7F5FE71.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEB
Deuteranopia (green-blind)
#0074E4
Tritanopia (blue-blind)
#5F7E9A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f5fe7;
/* rgb */ color: rgb(127, 95, 231);
/* oklch */ color: oklch(58.8% 0.197 289.8);
Tailwind
colors: {
  custom: {
    50: '#ab8eef',
    500: '#7f5fe7',
    950: '#000000',
  },
}
SCSS
$custom: #7f5fe7;
$custom-light: #ab8eef;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5fe7",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 254.118,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58837,
    "c": 0.19678,
    "h": 289.8
  },
  "luminance": 0.18466
}

Semantic roles & 50–950 ramp

primary
#7F5FE7
secondary
#DEE9B9
accent
#D60FA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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