#7A5BB5#7A5BB5

#7A5BB5 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.4% C 0.138 H 297.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7A5BB5
RGBrgb(122, 91, 181)
HSLhsl(261, 38%, 53%)
HSVhsv(261, 50%, 71%)
CMYKcmyk(32.6%, 49.7%, 0%, 29%)
CIE-LABlab(45.57, 32.51, -43.40)
CIE-LCHlch(45.57, 54.23, 306.84°)
OKLaboklab(54.41% 0.0637 -0.1223)
OKLCHoklch(54.41% 0.138 297.5)
XYZxyz(20.1056, 14.9557, 45.5346)
Luminance0.1496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5BB5 #96B55B
analogous
#5B69B5 #7A5BB5 #A75BB5
triadic
#7A5BB5 #B57A5B #5BB57A
tetradic
#7A5BB5 #B55B69 #96B55B #5BB5A7
square
#7A5BB5 #B55B69 #96B55B #5BB5A7
split-complementary
#7A5BB5 #B5A75B #69B55B
monochromatic
#422F67 #5D4291 #7A5BB5 #9C85C8 #BEAFDB

Accessibility & contrast

On white

5.26
#7A5BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7A5BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5BB5
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5BB5#FFFFFF#000000##FFFFFF
##7A5BB51.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6CB8
Deuteranopia (green-blind)
#436BB3
Tritanopia (blue-blind)
#6D6C7F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7a5bb5;
/* rgb */ color: rgb(122, 91, 181);
/* oklch */ color: oklch(54.4% 0.138 297.5);
Tailwind
colors: {
  custom: {
    50: '#a38acb',
    500: '#7a5bb5',
    950: '#000000',
  },
}
SCSS
$custom: #7a5bb5;
$custom-light: #a38acb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5bb5",
  "rgb": {
    "r": 122,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 260.667,
    "s": 37.815,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54414,
    "c": 0.13793,
    "h": 297.5
  },
  "luminance": 0.14956
}

Semantic roles & 50–950 ramp

primary
#7A5BB5
secondary
#BCC9A3
accent
#CE5AA6
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7A5BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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