#7B5AEC#7B5AEC

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

Color values

HEX#7B5AEC
RGBrgb(123, 90, 236)
HSLhsl(254, 79%, 64%)
HSVhsv(254, 62%, 93%)
CMYKcmyk(47.9%, 61.9%, 0%, 7.5%)
CIE-LABlab(48.98, 48.43, -69.42)
CIE-LCHlch(48.98, 84.64, 304.90°)
OKLaboklab(58.08% 0.0666 -0.1987)
OKLCHoklch(58.08% 0.21 288.5)
XYZxyz(26.9605, 17.5783, 81.3130)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5AEC #CBEC5A
analogous
#5A82EC #7B5AEC #C45AEC
triadic
#7B5AEC #EC7B5A #5AEC7B
tetradic
#7B5AEC #EC5A82 #CBEC5A #5AECC4
square
#7B5AEC #EC5A82 #CBEC5A #5AECC4
split-complementary
#7B5AEC #ECC45A #82EC5A
monochromatic
#3A15B7 #4F23E6 #7B5AEC #A791F2 #D3C8F9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B5AEC#FFFFFF#000000##FFFFFF
##7B5AEC1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b5aec;
/* rgb */ color: rgb(123, 90, 236);
/* oklch */ color: oklch(58.1% 0.210 288.5);
Tailwind
colors: {
  custom: {
    50: '#a98af3',
    500: '#7b5aec',
    950: '#000000',
  },
}
SCSS
$custom: #7b5aec;
$custom-light: #a98af3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5aec",
  "rgb": {
    "r": 123,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 253.562,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58075,
    "c": 0.20956,
    "h": 288.5
  },
  "luminance": 0.17579
}

Semantic roles & 50–950 ramp

primary
#7B5AEC
secondary
#DFEBB7
accent
#DC0AAC
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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