#7B5BDA#7B5BDA

#7B5BDA is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.9% C 0.186 H 290.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7B5BDA
RGBrgb(123, 91, 218)
HSLhsl(255, 63%, 61%)
HSVhsv(255, 58%, 85%)
CMYKcmyk(43.6%, 58.3%, 0%, 14.5%)
CIE-LABlab(47.95, 42.83, -60.91)
CIE-LCHlch(47.95, 74.46, 305.11°)
OKLaboklab(56.93% 0.0664 -0.1737)
OKLCHoklch(56.93% 0.186 290.9)
XYZxyz(24.5608, 16.7543, 68.2559)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5BDA #BADA5B
analogous
#5B7ADA #7B5BDA #BA5BDA
triadic
#7B5BDA #DA7B5B #5BDA7B
tetradic
#7B5BDA #DA5B7A #BADA5B #5BDABA
square
#7B5BDA #DA5B7A #BADA5B #5BDABA
split-complementary
#7B5BDA #DABA5B #7ADA5B
monochromatic
#402298 #552ECA #7B5BDA #A38DE5 #CBBFF1

Accessibility & contrast

On white

4.83
#7B5BDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7B5BDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5BDA
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5BDA#FFFFFF#000000##FFFFFF
##7B5BDA1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DE
Deuteranopia (green-blind)
#0A6FD7
Tritanopia (blue-blind)
#5F7792
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7b5bda;
/* rgb */ color: rgb(123, 91, 218);
/* oklch */ color: oklch(56.9% 0.186 290.9);
Tailwind
colors: {
  custom: {
    50: '#a78ae6',
    500: '#7b5bda',
    950: '#000000',
  },
}
SCSS
$custom: #7b5bda;
$custom-light: #a78ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5bda",
  "rgb": {
    "r": 123,
    "g": 91,
    "b": 218
  },
  "hsl": {
    "h": 255.118,
    "s": 63.184,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56927,
    "c": 0.18594,
    "h": 290.9
  },
  "luminance": 0.16755
}

Semantic roles & 50–950 ramp

primary
#7B5BDA
secondary
#D4E1B0
accent
#CB1B9F
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7B5BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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