#7F5FE3#7F5FE3

#7F5FE3 is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.6% C 0.192 H 290.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7F5FE3
RGBrgb(127, 95, 227)
HSLhsl(255, 70%, 63%)
HSVhsv(255, 58%, 89%)
CMYKcmyk(44.1%, 58.1%, 0%, 11%)
CIE-LABlab(49.79, 43.92, -63.02)
CIE-LCHlch(49.79, 76.82, 304.87°)
OKLaboklab(58.56% 0.0668 -0.1798)
OKLCHoklch(58.56% 0.192 290.4)
XYZxyz(26.7059, 18.2416, 74.7720)
Luminance0.1824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FE3 #C3E35F
analogous
#5F81E3 #7F5FE3 #C15FE3
triadic
#7F5FE3 #E37F5F #5FE37F
tetradic
#7F5FE3 #E35F81 #C3E35F #5FE3C1
square
#7F5FE3 #E35F81 #C3E35F #5FE3C1
split-complementary
#7F5FE3 #E3C15F #81E35F
monochromatic
#401EAA #552BDA #7F5FE3 #A993EC #D2C7F5

Accessibility & contrast

On white

4.52
#7F5FE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7F5FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5FE3
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5FE3#FFFFFF#000000##000000
##7F5FE31.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E7
Deuteranopia (green-blind)
#0473E0
Tritanopia (blue-blind)
#617C98
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5fe3;
/* rgb */ color: rgb(127, 95, 227);
/* oklch */ color: oklch(58.6% 0.192 290.4);
Tailwind
colors: {
  custom: {
    50: '#aa8ded',
    500: '#7f5fe3',
    950: '#000000',
  },
}
SCSS
$custom: #7f5fe3;
$custom-light: #aa8ded;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5fe3",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 227
  },
  "hsl": {
    "h": 254.545,
    "s": 70.213,
    "l": 63.137
  },
  "oklch": {
    "l": 0.58556,
    "c": 0.19179,
    "h": 290.4
  },
  "luminance": 0.18242
}

Semantic roles & 50–950 ramp

primary
#7F5FE3
secondary
#DBE7B7
accent
#D213A4
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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