#7A5BDA#7A5BDA

#7A5BDA is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.8% C 0.186 H 290.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7A5BDA
RGBrgb(122, 91, 218)
HSLhsl(255, 63%, 61%)
HSVhsv(255, 58%, 85%)
CMYKcmyk(44%, 58.3%, 0%, 14.5%)
CIE-LABlab(47.86, 42.62, -61.07)
CIE-LCHlch(47.86, 74.47, 304.91°)
OKLaboklab(56.84% 0.0651 -0.1742)
OKLCHoklch(56.84% 0.186 290.5)
XYZxyz(24.4185, 16.6809, 68.2492)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5BDA #BBDA5B
analogous
#5B7BDA #7A5BDA #BA5BDA
triadic
#7A5BDA #DA7A5B #5BDA7A
tetradic
#7A5BDA #DA5B7B #BBDA5B #5BDABA
square
#7A5BDA #DA5B7B #BBDA5B #5BDABA
split-complementary
#7A5BDA #DABA5B #7BDA5B
monochromatic
#3F2298 #542ECA #7A5BDA #A28DE5 #CBBFF1

Accessibility & contrast

On white

4.84
#7A5BDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7A5BDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5BDA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5BDA#FFFFFF#000000##FFFFFF
##7A5BDA1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DE
Deuteranopia (green-blind)
#066FD7
Tritanopia (blue-blind)
#5E7792
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7a5bda;
/* rgb */ color: rgb(122, 91, 218);
/* oklch */ color: oklch(56.8% 0.186 290.5);
Tailwind
colors: {
  custom: {
    50: '#a78ae6',
    500: '#7a5bda',
    950: '#000000',
  },
}
SCSS
$custom: #7a5bda;
$custom-light: #a78ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5bda",
  "rgb": {
    "r": 122,
    "g": 91,
    "b": 218
  },
  "hsl": {
    "h": 254.646,
    "s": 63.184,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56836,
    "c": 0.18594,
    "h": 290.5
  },
  "luminance": 0.16682
}

Semantic roles & 50–950 ramp

primary
#7A5BDA
secondary
#D5E1B0
accent
#CB1BA0
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7A5BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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