#7A5BCA#7A5BCA

#7A5BCA is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.7% C 0.165 H 293.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7A5BCA
RGBrgb(122, 91, 202)
HSLhsl(257, 51%, 57%)
HSVhsv(257, 55%, 79%)
CMYKcmyk(39.6%, 55%, 0%, 20.8%)
CIE-LABlab(46.82, 38.18, -53.58)
CIE-LCHlch(46.82, 65.79, 305.47°)
OKLaboklab(55.74% 0.0651 -0.1522)
OKLCHoklch(55.74% 0.165 293.1)
XYZxyz(22.4250, 15.8835, 57.7500)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5BCA #ABCA5B
analogous
#5B73CA #7A5BCA #B25BCA
triadic
#7A5BCA #CA7A5B #5BCA7A
tetradic
#7A5BCA #CA5B73 #ABCA5B #5BCAB2
square
#7A5BCA #CA5B73 #ABCA5B #5BCAB2
split-complementary
#7A5BCA #CAB25B #73CA5B
monochromatic
#422A81 #5A39AF #7A5BCA #A089D9 #C5B8E8

Accessibility & contrast

On white

5.03
#7A5BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7A5BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5BCA
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5BCA#FFFFFF#000000##FFFFFF
##7A5BCA1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2570CE
Deuteranopia (green-blind)
#2E6DC8
Tritanopia (blue-blind)
#65728A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7a5bca;
/* rgb */ color: rgb(122, 91, 202);
/* oklch */ color: oklch(55.7% 0.165 293.1);
Tailwind
colors: {
  custom: {
    50: '#a58adb',
    500: '#7a5bca',
    950: '#000000',
  },
}
SCSS
$custom: #7a5bca;
$custom-light: #a58adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5bca",
  "rgb": {
    "r": 122,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 256.757,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55743,
    "c": 0.16549,
    "h": 293.1
  },
  "luminance": 0.15884
}

Semantic roles & 50–950 ramp

primary
#7A5BCA
secondary
#CAD7AA
accent
#DB4DB3
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7A5BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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