#7F58D8#7F58D8

#7F58D8 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.7% C 0.188 H 293.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7F58D8
RGBrgb(127, 88, 216)
HSLhsl(258, 62%, 60%)
HSVhsv(258, 59%, 85%)
CMYKcmyk(41.2%, 59.3%, 0%, 15.3%)
CIE-LABlab(47.56, 44.83, -60.39)
CIE-LCHlch(47.56, 75.21, 306.59°)
OKLaboklab(56.69% 0.075 -0.172)
OKLCHoklch(56.69% 0.188 293.6)
XYZxyz(24.6335, 16.4487, 66.8295)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F58D8 #B1D858
analogous
#5871D8 #7F58D8 #BF58D8
triadic
#7F58D8 #D87F58 #58D87F
tetradic
#7F58D8 #D85871 #B1D858 #58D8BF
square
#7F58D8 #D85871 #B1D858 #58D8BF
split-complementary
#7F58D8 #D8BF58 #71D858
monochromatic
#452293 #5C2EC5 #7F58D8 #A58AE4 #CBBBEF

Accessibility & contrast

On white

4.90
#7F58D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7F58D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F58D8
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F58D8#FFFFFF#000000##FFFFFF
##7F58D81.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DC
Deuteranopia (green-blind)
#116FD5
Tritanopia (blue-blind)
#677490
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f58d8;
/* rgb */ color: rgb(127, 88, 216);
/* oklch */ color: oklch(56.7% 0.188 293.6);
Tailwind
colors: {
  custom: {
    50: '#aa89e5',
    500: '#7f58d8',
    950: '#000000',
  },
}
SCSS
$custom: #7f58d8;
$custom-light: #aa89e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f58d8",
  "rgb": {
    "r": 127,
    "g": 88,
    "b": 216
  },
  "hsl": {
    "h": 258.281,
    "s": 62.136,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56689,
    "c": 0.18767,
    "h": 293.6
  },
  "luminance": 0.16449
}

Semantic roles & 50–950 ramp

primary
#7F58D8
secondary
#D0DFAD
accent
#E543B4
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7F58D8

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

Preview Lab → · Contrast checker → · Palette generator →

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