#7A5FDC#7A5FDC

#7A5FDC is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.6% C 0.183 H 289.3°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7A5FDC
RGBrgb(122, 95, 220)
HSLhsl(253, 64%, 62%)
HSVhsv(253, 57%, 86%)
CMYKcmyk(44.5%, 56.8%, 0%, 13.7%)
CIE-LABlab(48.87, 40.89, -60.57)
CIE-LCHlch(48.87, 73.08, 304.02°)
OKLaboklab(57.62% 0.0605 -0.1727)
OKLCHoklch(57.62% 0.183 289.3)
XYZxyz(25.0329, 17.4884, 69.7529)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5FDC #C1DC5F
analogous
#5F83DC #7A5FDC #B95FDC
triadic
#7A5FDC #DC7A5F #5FDC7A
tetradic
#7A5FDC #DC5F83 #C1DC5F #5FDCB9
square
#7A5FDC #DC5F83 #C1DC5F #5FDCB9
split-complementary
#7A5FDC #DCB95F #83DC5F
monochromatic
#3D239E #512ED0 #7A5FDC #A491E7 #CDC3F2

Accessibility & contrast

On white

4.67
#7A5FDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7A5FDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5FDC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5FDC#FFFFFF#000000##FFFFFF
##7A5FDC1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B77E0
Deuteranopia (green-blind)
#1471D9
Tritanopia (blue-blind)
#5C7B94
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7a5fdc;
/* rgb */ color: rgb(122, 95, 220);
/* oklch */ color: oklch(57.6% 0.183 289.3);
Tailwind
colors: {
  custom: {
    50: '#a78de8',
    500: '#7a5fdc',
    950: '#000000',
  },
}
SCSS
$custom: #7a5fdc;
$custom-light: #a78de8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5fdc",
  "rgb": {
    "r": 122,
    "g": 95,
    "b": 220
  },
  "hsl": {
    "h": 252.96,
    "s": 64.103,
    "l": 61.765
  },
  "oklch": {
    "l": 0.57624,
    "c": 0.18299,
    "h": 289.3
  },
  "luminance": 0.17489
}

Semantic roles & 50–950 ramp

primary
#7A5FDC
secondary
#D9E3B4
accent
#CC1AA5
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7A5FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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