#7A5BCB#7A5BCB

#7A5BCB is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.8% C 0.167 H 293.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7A5BCB
RGBrgb(122, 91, 203)
HSLhsl(257, 52%, 58%)
HSVhsv(257, 55%, 80%)
CMYKcmyk(39.9%, 55.2%, 0%, 20.4%)
CIE-LABlab(46.88, 38.45, -54.05)
CIE-LCHlch(46.88, 66.34, 305.43°)
OKLaboklab(55.81% 0.0651 -0.1536)
OKLCHoklch(55.81% 0.167 293)
XYZxyz(22.5437, 15.9310, 58.3755)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5BCB #ACCB5B
analogous
#5B74CB #7A5BCB #B25BCB
triadic
#7A5BCB #CB7A5B #5BCB7A
tetradic
#7A5BCB #CB5B74 #ACCB5B #5BCBB2
square
#7A5BCB #CB5B74 #ACCB5B #5BCBB2
split-complementary
#7A5BCB #CBB25B #74CB5B
monochromatic
#422982 #5938B1 #7A5BCB #A089DA #C5B8E8

Accessibility & contrast

On white

5.02
#7A5BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7A5BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5BCB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5BCB#FFFFFF#000000##FFFFFF
##7A5BCB1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2471CF
Deuteranopia (green-blind)
#2C6DC8
Tritanopia (blue-blind)
#65738A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7a5bcb;
/* rgb */ color: rgb(122, 91, 203);
/* oklch */ color: oklch(55.8% 0.167 293.0);
Tailwind
colors: {
  custom: {
    50: '#a58adb',
    500: '#7a5bcb',
    950: '#000000',
  },
}
SCSS
$custom: #7a5bcb;
$custom-light: #a58adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5bcb",
  "rgb": {
    "r": 122,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 256.607,
    "s": 51.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5581,
    "c": 0.16678,
    "h": 293
  },
  "luminance": 0.15932
}

Semantic roles & 50–950 ramp

primary
#7A5BCB
secondary
#CBD7AA
accent
#DB4CB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7A5BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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