#7A58DB#7A58DB

#7A58DB is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.4% C 0.191 H 291.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7A58DB
RGBrgb(122, 88, 219)
HSLhsl(256, 65%, 60%)
HSVhsv(256, 60%, 86%)
CMYKcmyk(44.3%, 59.8%, 0%, 14.1%)
CIE-LABlab(47.28, 44.59, -62.57)
CIE-LCHlch(47.28, 76.84, 305.48°)
OKLaboklab(56.43% 0.0684 -0.1786)
OKLCHoklch(56.43% 0.191 291)
XYZxyz(24.2984, 16.2307, 68.8567)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A58DB #B9DB58
analogous
#5877DB #7A58DB #BC58DB
triadic
#7A58DB #DB7A58 #58DB7A
tetradic
#7A58DB #DB5877 #B9DB58 #58DBBC
square
#7A58DB #DB5877 #B9DB58 #58DBBC
split-complementary
#7A58DB #DBBC58 #77DB58
monochromatic
#402198 #552CCA #7A58DB #A28AE6 #CABDF1

Accessibility & contrast

On white

4.95
#7A58DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7A58DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A58DB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A58DB#FFFFFF#000000##FFFFFF
##7A58DB1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#5D7691
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a58db;
/* rgb */ color: rgb(122, 88, 219);
/* oklch */ color: oklch(56.4% 0.191 291.0);
Tailwind
colors: {
  custom: {
    50: '#a788e7',
    500: '#7a58db',
    950: '#000000',
  },
}
SCSS
$custom: #7a58db;
$custom-light: #a788e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a58db",
  "rgb": {
    "r": 122,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 255.573,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56433,
    "c": 0.19126,
    "h": 291
  },
  "luminance": 0.16231
}

Semantic roles & 50–950 ramp

primary
#7A58DB
secondary
#D3E1AE
accent
#CC199E
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A58DB

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

Preview Lab → · Contrast checker → · Palette generator →

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