#7A5BC7#7A5BC7

#7A5BC7 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.5% C 0.162 H 293.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7A5BC7
RGBrgb(122, 91, 199)
HSLhsl(257, 49%, 57%)
HSVhsv(257, 54%, 78%)
CMYKcmyk(38.7%, 54.3%, 0%, 22%)
CIE-LABlab(46.64, 37.36, -52.15)
CIE-LCHlch(46.64, 64.15, 305.61°)
OKLaboklab(55.55% 0.065 -0.148)
OKLCHoklch(55.55% 0.162 293.7)
XYZxyz(22.0732, 15.7428, 55.8974)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5BC7 #A8C75B
analogous
#5B72C7 #7A5BC7 #B05BC7
triadic
#7A5BC7 #C77A5B #5BC77A
tetradic
#7A5BC7 #C75B72 #A8C75B #5BC7B0
square
#7A5BC7 #C75B72 #A8C75B #5BC7B0
split-complementary
#7A5BC7 #C7B05B #72C75B
monochromatic
#422B7D #5A3AAB #7A5BC7 #9F89D7 #C4B6E6

Accessibility & contrast

On white

5.06
#7A5BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7A5BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5BC7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5BC7#FFFFFF#000000##FFFFFF
##7A5BC71.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A70CB
Deuteranopia (green-blind)
#326DC5
Tritanopia (blue-blind)
#667188
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7a5bc7;
/* rgb */ color: rgb(122, 91, 199);
/* oklch */ color: oklch(55.5% 0.162 293.7);
Tailwind
colors: {
  custom: {
    50: '#a58ad9',
    500: '#7a5bc7',
    950: '#000000',
  },
}
SCSS
$custom: #7a5bc7;
$custom-light: #a58ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5bc7",
  "rgb": {
    "r": 122,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 257.222,
    "s": 49.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55546,
    "c": 0.1616,
    "h": 293.7
  },
  "luminance": 0.15743
}

Semantic roles & 50–950 ramp

primary
#7A5BC7
secondary
#C8D5A9
accent
#D94FB1
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7A5BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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