#7A5BB2#7A5BB2

#7A5BB2 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.2% C 0.134 H 298.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#7A5BB2
RGBrgb(122, 91, 178)
HSLhsl(261, 36%, 53%)
HSVhsv(261, 49%, 70%)
CMYKcmyk(31.5%, 48.9%, 0%, 30.2%)
CIE-LABlab(45.41, 31.73, -41.91)
CIE-LCHlch(45.41, 52.57, 307.12°)
OKLaboklab(54.24% 0.0634 -0.118)
OKLCHoklch(54.24% 0.134 298.3)
XYZxyz(19.8011, 14.8339, 43.9309)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5BB2 #93B25B
analogous
#5B67B2 #7A5BB2 #A55BB2
triadic
#7A5BB2 #B27A5B #5BB27A
tetradic
#7A5BB2 #B25B67 #93B25B #5BB2A5
square
#7A5BB2 #B25B67 #93B25B #5BB2A5
split-complementary
#7A5BB2 #B2A55B #67B25B
monochromatic
#422F64 #5D428D #7A5BB2 #9C85C6 #BEAED9

Accessibility & contrast

On white

5.29
#7A5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#7A5BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5BB2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5BB2#FFFFFF#000000##FFFFFF
##7A5BB21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6CB5
Deuteranopia (green-blind)
#456BB0
Tritanopia (blue-blind)
#6E6B7E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7a5bb2;
/* rgb */ color: rgb(122, 91, 178);
/* oklch */ color: oklch(54.2% 0.134 298.3);
Tailwind
colors: {
  custom: {
    50: '#a38ac9',
    500: '#7a5bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7a5bb2;
$custom-light: #a38ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5bb2",
  "rgb": {
    "r": 122,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 261.379,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54235,
    "c": 0.13394,
    "h": 298.3
  },
  "luminance": 0.14834
}

Semantic roles & 50–950 ramp

primary
#7A5BB2
secondary
#BAC7A2
accent
#CC5CA4
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7A5BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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