#7A5BEC#7A5BEC

#7A5BEC is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.1% C 0.208 H 288.0°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7A5BEC
RGBrgb(122, 91, 236)
HSLhsl(253, 79%, 64%)
HSVhsv(253, 61%, 93%)
CMYKcmyk(48.3%, 61.4%, 0%, 7.5%)
CIE-LABlab(49.10, 47.69, -69.23)
CIE-LCHlch(49.10, 84.07, 304.56°)
OKLaboklab(58.14% 0.0642 -0.1982)
OKLCHoklch(58.14% 0.208 288)
XYZxyz(26.9031, 17.6747, 81.3346)
Luminance0.1768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5BEC #CDEC5B
analogous
#5B85EC #7A5BEC #C35BEC
triadic
#7A5BEC #EC7A5B #5BEC7A
tetradic
#7A5BEC #EC5B85 #CDEC5B #5BECC3
square
#7A5BEC #EC5B85 #CDEC5B #5BECC3
split-complementary
#7A5BEC #ECC35B #85EC5B
monochromatic
#3815B7 #4E24E6 #7A5BEC #A692F2 #D3C9F9

Accessibility & contrast

On white

4.63
#7A5BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7A5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5BEC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5BEC#FFFFFF#000000##FFFFFF
##7A5BEC1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#0071E9
Tritanopia (blue-blind)
#537D9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7a5bec;
/* rgb */ color: rgb(122, 91, 236);
/* oklch */ color: oklch(58.1% 0.208 288.0);
Tailwind
colors: {
  custom: {
    50: '#a98bf3',
    500: '#7a5bec',
    950: '#000000',
  },
}
SCSS
$custom: #7a5bec;
$custom-light: #a98bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5bec",
  "rgb": {
    "r": 122,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 252.828,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.58139,
    "c": 0.20833,
    "h": 288
  },
  "luminance": 0.17676
}

Semantic roles & 50–950 ramp

primary
#7A5BEC
secondary
#E0EBB8
accent
#DC0AAF
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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