#7A5FAC#7A5FAC

#7A5FAC is a mid, moderate violet. Relative luminance 0.153; OKLCH L 54.6% C 0.119 H 298.6°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7A5FAC
RGBrgb(122, 95, 172)
HSLhsl(261, 32%, 52%)
HSVhsv(261, 45%, 67%)
CMYKcmyk(29.1%, 44.8%, 0%, 32.5%)
CIE-LABlab(46.04, 27.79, -37.39)
CIE-LCHlch(46.04, 46.58, 306.62°)
OKLaboklab(54.61% 0.057 -0.1048)
OKLCHoklch(54.61% 0.119 298.6)
XYZxyz(19.5629, 15.3004, 40.9443)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5FAC #91AC5F
analogous
#5F6BAC #7A5FAC #A05FAC
triadic
#7A5FAC #AC7A5F #5FAC7A
tetradic
#7A5FAC #AC5F6B #91AC5F #5FACA0
square
#7A5FAC #AC5F6B #91AC5F #5FACA0
split-complementary
#7A5FAC #ACA05F #6BAC5F
monochromatic
#41315F #5D4688 #7A5FAC #9B87C1 #BDB0D6

Accessibility & contrast

On white

5.17
#7A5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7A5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5FAC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5FAC#FFFFFF#000000##FFFFFF
##7A5FAC1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486DAF
Deuteranopia (green-blind)
#4E6CAA
Tritanopia (blue-blind)
#706D7D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7a5fac;
/* rgb */ color: rgb(122, 95, 172);
/* oklch */ color: oklch(54.6% 0.119 298.6);
Tailwind
colors: {
  custom: {
    50: '#a28dc5',
    500: '#7a5fac',
    950: '#000000',
  },
}
SCSS
$custom: #7a5fac;
$custom-light: #a28dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5fac",
  "rgb": {
    "r": 122,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 261.039,
    "s": 31.687,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54608,
    "c": 0.11929,
    "h": 298.6
  },
  "luminance": 0.15301
}

Semantic roles & 50–950 ramp

primary
#7A5FAC
secondary
#B8C4A3
accent
#C860A3
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7A5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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