#7A5FFD#7A5FFD

#7A5FFD is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.0% C 0.224 H 285.3°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7A5FFD
RGBrgb(122, 95, 253)
HSLhsl(250, 98%, 68%)
HSVhsv(250, 62%, 99%)
CMYKcmyk(51.8%, 62.5%, 0%, 0.8%)
CIE-LABlab(51.17, 50.33, -75.36)
CIE-LCHlch(51.17, 90.62, 303.73°)
OKLaboklab(60.03% 0.059 -0.2162)
OKLCHoklch(60.03% 0.224 285.3)
XYZxyz(29.8426, 19.4123, 95.0839)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5FFD #E2FD5F
analogous
#5F93FD #7A5FFD #C95FFD
triadic
#7A5FFD #FD7A5F #5FFD7A
tetradic
#7A5FFD #FD5F93 #E2FD5F #5FFDC9
square
#7A5FFD #FD5F93 #E2FD5F #5FFDC9
split-complementary
#7A5FFD #FDC95F #93FD5F
monochromatic
#2803DF #4823FC #7A5FFD #AC9BFE #DED8FF

Accessibility & contrast

On white

4.30
#7A5FFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#7A5FFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A5FFD
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5FFD#FFFFFF#000000##000000
##7A5FFD1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0075FA
Tritanopia (blue-blind)
#4585A5
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7a5ffd;
/* rgb */ color: rgb(122, 95, 253);
/* oklch */ color: oklch(60.0% 0.224 285.3);
Tailwind
colors: {
  custom: {
    50: '#ab8eff',
    500: '#7a5ffd',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ffd;
$custom-light: #ab8eff;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ffd",
  "rgb": {
    "r": 122,
    "g": 95,
    "b": 253
  },
  "hsl": {
    "h": 250.253,
    "s": 97.531,
    "l": 68.235
  },
  "oklch": {
    "l": 0.60031,
    "c": 0.22412,
    "h": 285.3
  },
  "luminance": 0.19414
}

Semantic roles & 50–950 ramp

primary
#7A5FFD
secondary
#ECF4C4
accent
#E600BE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7A5FFD

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

Preview Lab → · Contrast checker → · Palette generator →

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