#7A5BEB#7A5BEB

#7A5BEB is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.1% C 0.207 H 288.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7A5BEB
RGBrgb(122, 91, 235)
HSLhsl(253, 78%, 64%)
HSVhsv(253, 61%, 92%)
CMYKcmyk(48.1%, 61.3%, 0%, 7.8%)
CIE-LABlab(49.03, 47.41, -68.78)
CIE-LCHlch(49.03, 83.54, 304.58°)
OKLaboklab(58.07% 0.0643 -0.1969)
OKLCHoklch(58.07% 0.207 288.1)
XYZxyz(26.7582, 17.6167, 80.5716)
Luminance0.1762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5BEB #CCEB5B
analogous
#5B84EB #7A5BEB #C25BEB
triadic
#7A5BEB #EB7A5B #5BEB7A
tetradic
#7A5BEB #EB5B84 #CCEB5B #5BEBC2
square
#7A5BEB #EB5B84 #CCEB5B #5BEBC2
split-complementary
#7A5BEB #EBC25B #84EB5B
monochromatic
#3816B5 #4E24E4 #7A5BEB #A692F2 #D2C8F8

Accessibility & contrast

On white

4.64
#7A5BEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7A5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5BEB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5BEB#FFFFFF#000000##FFFFFF
##7A5BEB1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#547D9B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7a5beb;
/* rgb */ color: rgb(122, 91, 235);
/* oklch */ color: oklch(58.1% 0.207 288.1);
Tailwind
colors: {
  custom: {
    50: '#a98bf2',
    500: '#7a5beb',
    950: '#000000',
  },
}
SCSS
$custom: #7a5beb;
$custom-light: #a98bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5beb",
  "rgb": {
    "r": 122,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 252.917,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58065,
    "c": 0.20711,
    "h": 288.1
  },
  "luminance": 0.17618
}

Semantic roles & 50–950 ramp

primary
#7A5BEB
secondary
#DFEAB8
accent
#DB0BAE
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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