#7A5CB7#7A5CB7

#7A5CB7 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.7% C 0.139 H 296.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7A5CB7
RGBrgb(122, 92, 183)
HSLhsl(260, 39%, 54%)
HSVhsv(260, 50%, 72%)
CMYKcmyk(33.3%, 49.7%, 0%, 28.2%)
CIE-LABlab(45.92, 32.45, -44.02)
CIE-LCHlch(45.92, 54.69, 306.40°)
OKLaboklab(54.71% 0.0626 -0.1241)
OKLCHoklch(54.71% 0.139 296.8)
XYZxyz(20.3983, 15.2105, 46.6518)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5CB7 #99B75C
analogous
#5C6CB7 #7A5CB7 #A85CB7
triadic
#7A5CB7 #B77A5C #5CB77A
tetradic
#7A5CB7 #B75C6C #99B75C #5CB7A8
square
#7A5CB7 #B75C6C #99B75C #5CB7A8
split-complementary
#7A5CB7 #B7A85C #6CB75C
monochromatic
#422F6A #5D4294 #7A5CB7 #9D86CA #BFB1DD

Accessibility & contrast

On white

5.20
#7A5CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7A5CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5CB7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5CB7#FFFFFF#000000##FFFFFF
##7A5CB71.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6DBA
Deuteranopia (green-blind)
#436CB5
Tritanopia (blue-blind)
#6D6D81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7a5cb7;
/* rgb */ color: rgb(122, 92, 183);
/* oklch */ color: oklch(54.7% 0.139 296.8);
Tailwind
colors: {
  custom: {
    50: '#a38bcd',
    500: '#7a5cb7',
    950: '#000000',
  },
}
SCSS
$custom: #7a5cb7;
$custom-light: #a38bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5cb7",
  "rgb": {
    "r": 122,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 259.78,
    "s": 38.723,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5471,
    "c": 0.139,
    "h": 296.8
  },
  "luminance": 0.15211
}

Semantic roles & 50–950 ramp

primary
#7A5CB7
secondary
#BECBA4
accent
#CF59A8
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7A5CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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