#7F5FEF#7F5FEF

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

Color values

HEX#7F5FEF
RGBrgb(127, 95, 239)
HSLhsl(253, 82%, 65%)
HSVhsv(253, 60%, 94%)
CMYKcmyk(46.9%, 60.3%, 0%, 6.3%)
CIE-LABlab(50.60, 47.27, -68.45)
CIE-LCHlch(50.60, 83.19, 304.63°)
OKLaboklab(59.41% 0.0664 -0.1957)
OKLCHoklch(59.41% 0.207 288.7)
XYZxyz(28.4201, 18.9273, 83.8005)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FEF #CFEF5F
analogous
#5F87EF #7F5FEF #C75FEF
triadic
#7F5FEF #EF7F5F #5FEF7F
tetradic
#7F5FEF #EF5F87 #CFEF5F #5FEFC7
square
#7F5FEF #EF5F87 #CFEF5F #5FEFC7
split-complementary
#7F5FEF #EFC75F #87EF5F
monochromatic
#3A13C0 #5227E9 #7F5FEF #AC97F5 #D8CEFA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F5FEF#FFFFFF#000000##000000
##7F5FEF1.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)
#007CF4
Deuteranopia (green-blind)
#0075EC
Tritanopia (blue-blind)
#5A809E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5fef;
/* rgb */ color: rgb(127, 95, 239);
/* oklch */ color: oklch(59.4% 0.207 288.7);
Tailwind
colors: {
  custom: {
    50: '#ac8ef5',
    500: '#7f5fef',
    950: '#000000',
  },
}
SCSS
$custom: #7f5fef;
$custom-light: #ac8ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5fef",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 239
  },
  "hsl": {
    "h": 253.333,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.59411,
    "c": 0.20668,
    "h": 288.7
  },
  "luminance": 0.18928
}

Semantic roles & 50–950 ramp

primary
#7F5FEF
secondary
#E2EDBD
accent
#DE07AE
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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