#7A5DF2#7A5DF2

#7A5DF2 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 58.9% C 0.213 H 286.9°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7A5DF2
RGBrgb(122, 93, 242)
HSLhsl(252, 85%, 66%)
HSVhsv(252, 62%, 95%)
CMYKcmyk(49.6%, 61.6%, 0%, 5.1%)
CIE-LABlab(49.95, 48.28, -71.21)
CIE-LCHlch(49.95, 86.04, 304.14°)
OKLaboklab(58.89% 0.0618 -0.204)
OKLCHoklch(58.89% 0.213 286.9)
XYZxyz(27.9627, 18.3758, 86.0607)
Luminance0.1838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5DF2 #D5F25D
analogous
#5D8AF2 #7A5DF2 #C45DF2
triadic
#7A5DF2 #F27A5D #5DF27A
tetradic
#7A5DF2 #F25D8A #D5F25D #5DF2C4
square
#7A5DF2 #F25D8A #D5F25D #5DF2C4
split-complementary
#7A5DF2 #F2C45D #8AF25D
monochromatic
#3310C5 #4B24ED #7A5DF2 #A996F7 #D7CEFB

Accessibility & contrast

On white

4.49
#7A5DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#7A5DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A5DF2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5DF2#FFFFFF#000000##000000
##7A5DF21.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#4F809F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7a5df2;
/* rgb */ color: rgb(122, 93, 242);
/* oklch */ color: oklch(58.9% 0.213 286.9);
Tailwind
colors: {
  custom: {
    50: '#a98cf7',
    500: '#7a5df2',
    950: '#000000',
  },
}
SCSS
$custom: #7a5df2;
$custom-light: #a98cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5df2",
  "rgb": {
    "r": 122,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 251.678,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.58894,
    "c": 0.21317,
    "h": 286.9
  },
  "luminance": 0.18377
}

Semantic roles & 50–950 ramp

primary
#7A5DF2
secondary
#E5EEBD
accent
#E204B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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