#7F58F2#7F58F2

#7F58F2 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.6% C 0.219 H 289.5°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#7F58F2
RGBrgb(127, 88, 242)
HSLhsl(255, 86%, 65%)
HSVhsv(255, 64%, 95%)
CMYKcmyk(47.5%, 63.6%, 0%, 5.1%)
CIE-LABlab(49.38, 51.94, -72.12)
CIE-LCHlch(49.38, 88.88, 305.76°)
OKLaboklab(58.59% 0.0732 -0.2065)
OKLCHoklch(58.59% 0.219 289.5)
XYZxyz(28.2645, 17.9011, 85.9532)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F58F2 #CBF258
analogous
#587EF2 #7F58F2 #CC58F2
triadic
#7F58F2 #F27F58 #58F27F
tetradic
#7F58F2 #F2587E #CBF258 #58F2CC
square
#7F58F2 #F2587E #CBF258 #58F2CC
split-complementary
#7F58F2 #F2CC58 #7EF258
monochromatic
#3C0FC1 #531FEE #7F58F2 #AB91F6 #D6CAFB

Accessibility & contrast

On white

4.58
#7F58F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7F58F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F58F2
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F58F2#FFFFFF#000000##000000
##7F58F21.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F7
Deuteranopia (green-blind)
#0072EF
Tritanopia (blue-blind)
#597D9D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f58f2;
/* rgb */ color: rgb(127, 88, 242);
/* oklch */ color: oklch(58.6% 0.219 289.5);
Tailwind
colors: {
  custom: {
    50: '#ac89f7',
    500: '#7f58f2',
    950: '#000000',
  },
}
SCSS
$custom: #7f58f2;
$custom-light: #ac89f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f58f2",
  "rgb": {
    "r": 127,
    "g": 88,
    "b": 242
  },
  "hsl": {
    "h": 255.195,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58586,
    "c": 0.21914,
    "h": 289.5
  },
  "luminance": 0.17902
}

Semantic roles & 50–950 ramp

primary
#7F58F2
secondary
#E0EDB8
accent
#E203AA
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F58F2

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

Preview Lab → · Contrast checker → · Palette generator →

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