#7B5ABA#7B5ABA

#7B5ABA is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.6% C 0.146 H 297.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7B5ABA
RGBrgb(123, 90, 186)
HSLhsl(261, 41%, 54%)
HSVhsv(261, 52%, 73%)
CMYKcmyk(33.9%, 51.6%, 0%, 27.1%)
CIE-LABlab(45.73, 34.69, -46.07)
CIE-LCHlch(45.73, 57.67, 306.98°)
OKLaboklab(54.65% 0.0668 -0.1301)
OKLCHoklch(54.65% 0.146 297.2)
XYZxyz(20.6853, 15.0682, 48.2635)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5ABA #99BA5A
analogous
#5A69BA #7B5ABA #AB5ABA
triadic
#7B5ABA #BA7B5A #5ABA7B
tetradic
#7B5ABA #BA5A69 #99BA5A #5ABAAB
square
#7B5ABA #BA5A69 #99BA5A #5ABAAB
split-complementary
#7B5ABA #BAAB5A #69BA5A
monochromatic
#432D6C #5E3F97 #7B5ABA #9E85CC #C0B0DE

Accessibility & contrast

On white

5.23
#7B5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7B5ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5ABA
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5ABA#FFFFFF#000000##FFFFFF
##7B5ABA1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366DBD
Deuteranopia (green-blind)
#3E6BB8
Tritanopia (blue-blind)
#6D6D81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7b5aba;
/* rgb */ color: rgb(123, 90, 186);
/* oklch */ color: oklch(54.6% 0.146 297.2);
Tailwind
colors: {
  custom: {
    50: '#a489cf',
    500: '#7b5aba',
    950: '#000000',
  },
}
SCSS
$custom: #7b5aba;
$custom-light: #a489cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5aba",
  "rgb": {
    "r": 123,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 260.625,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54645,
    "c": 0.14624,
    "h": 297.2
  },
  "luminance": 0.15068
}

Semantic roles & 50–950 ramp

primary
#7B5ABA
secondary
#BECCA3
accent
#D157A7
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7B5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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