#9A58EB#9A58EB

#9A58EB is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.7% C 0.213 H 300.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9A58EB
RGBrgb(154, 88, 235)
HSLhsl(267, 79%, 63%)
HSVhsv(267, 63%, 92%)
CMYKcmyk(34.5%, 62.6%, 0%, 7.8%)
CIE-LABlab(51.66, 55.48, -64.36)
CIE-LCHlch(51.66, 84.97, 310.76°)
OKLaboklab(60.73% 0.1093 -0.1829)
OKLCHoklch(60.73% 0.213 300.9)
XYZxyz(31.8079, 19.8474, 80.7363)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A58EB #A9EB58
analogous
#585FEB #9A58EB #E458EB
triadic
#9A58EB #EB9A58 #58EB9A
tetradic
#9A58EB #EB585F #A9EB58 #58EBE4
square
#9A58EB #EB585F #A9EB58 #58EBE4
split-complementary
#9A58EB #EBE458 #5FEB58
monochromatic
#5C15B3 #7921E4 #9A58EB #BB8FF2 #DCC5F8

Accessibility & contrast

On white

4.23
#9A58EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9A58EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A58EB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A58EB#FFFFFF#000000##000000
##9A58EB1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#1E7AE8
Tritanopia (blue-blind)
#89789A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9a58eb;
/* rgb */ color: rgb(154, 88, 235);
/* oklch */ color: oklch(60.7% 0.213 300.9);
Tailwind
colors: {
  custom: {
    50: '#bd8bf2',
    500: '#9a58eb',
    950: '#000000',
  },
}
SCSS
$custom: #9a58eb;
$custom-light: #bd8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a58eb",
  "rgb": {
    "r": 154,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 266.939,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.6073,
    "c": 0.21304,
    "h": 300.9
  },
  "luminance": 0.19848
}

Semantic roles & 50–950 ramp

primary
#9A58EB
secondary
#D2EAB5
accent
#DB0B7D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A58EB

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

Preview Lab → · Contrast checker → · Palette generator →

#9A58EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva