#7A5BEF#7A5BEF

#7A5BEF is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.4% C 0.212 H 287.6°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7A5BEF
RGBrgb(122, 91, 239)
HSLhsl(253, 82%, 65%)
HSVhsv(253, 62%, 94%)
CMYKcmyk(49%, 61.9%, 0%, 6.3%)
CIE-LABlab(49.31, 48.54, -70.56)
CIE-LCHlch(49.31, 85.65, 304.52°)
OKLaboklab(58.36% 0.064 -0.2021)
OKLCHoklch(58.36% 0.212 287.6)
XYZxyz(27.3426, 17.8505, 83.6494)
Luminance0.1785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5BEF #D0EF5B
analogous
#5B86EF #7A5BEF #C45BEF
triadic
#7A5BEF #EF7A5B #5BEF7A
tetradic
#7A5BEF #EF5B86 #D0EF5B #5BEFC4
square
#7A5BEF #EF5B86 #D0EF5B #5BEFC4
split-complementary
#7A5BEF #EFC45B #86EF5B
monochromatic
#3612BD #4D23EA #7A5BEF #A793F4 #D4CBFA

Accessibility & contrast

On white

4.59
#7A5BEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7A5BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5BEF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5BEF#FFFFFF#000000##FFFFFF
##7A5BEF1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F4
Deuteranopia (green-blind)
#0071EC
Tritanopia (blue-blind)
#517E9D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7a5bef;
/* rgb */ color: rgb(122, 91, 239);
/* oklch */ color: oklch(58.4% 0.212 287.6);
Tailwind
colors: {
  custom: {
    50: '#a98bf5',
    500: '#7a5bef',
    950: '#000000',
  },
}
SCSS
$custom: #7a5bef;
$custom-light: #a98bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5bef",
  "rgb": {
    "r": 122,
    "g": 91,
    "b": 239
  },
  "hsl": {
    "h": 252.568,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58364,
    "c": 0.21201,
    "h": 287.6
  },
  "luminance": 0.17852
}

Semantic roles & 50–950 ramp

primary
#7A5BEF
secondary
#E2ECBA
accent
#DF07B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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