#7A5CE7#7A5CE7

#7A5CE7 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 57.9% C 0.201 H 288.4°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7A5CE7
RGBrgb(122, 92, 231)
HSLhsl(253, 74%, 63%)
HSVhsv(253, 60%, 91%)
CMYKcmyk(47.2%, 60.2%, 0%, 9.4%)
CIE-LABlab(48.96, 45.71, -66.64)
CIE-LCHlch(48.96, 80.81, 304.45°)
OKLaboklab(57.93% 0.0635 -0.1906)
OKLCHoklch(57.93% 0.201 288.4)
XYZxyz(26.2728, 17.5603, 77.5910)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5CE7 #C9E75C
analogous
#5C83E7 #7A5CE7 #C05CE7
triadic
#7A5CE7 #E77A5C #5CE77A
tetradic
#7A5CE7 #E75C83 #C9E75C #5CE7C0
square
#7A5CE7 #E75C83 #C9E75C #5CE7C0
split-complementary
#7A5CE7 #E7C05C #83E75C
monochromatic
#3A1AAF #4E27DF #7A5CE7 #A691EF #D1C7F7

Accessibility & contrast

On white

4.65
#7A5CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#7A5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5CE7
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5CE7#FFFFFF#000000##FFFFFF
##7A5CE71.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EB
Deuteranopia (green-blind)
#0071E4
Tritanopia (blue-blind)
#567C99
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7a5ce7;
/* rgb */ color: rgb(122, 92, 231);
/* oklch */ color: oklch(57.9% 0.201 288.4);
Tailwind
colors: {
  custom: {
    50: '#a88bef',
    500: '#7a5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ce7;
$custom-light: #a88bef;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ce7",
  "rgb": {
    "r": 122,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 252.95,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57925,
    "c": 0.20088,
    "h": 288.4
  },
  "luminance": 0.17561
}

Semantic roles & 50–950 ramp

primary
#7A5CE7
secondary
#DDE8B7
accent
#D60FAB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #7A5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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