#7A5FA3#7A5FA3

#7A5FA3 is a mid, moderate violet. Relative luminance 0.150; OKLCH L 54.1% C 0.107 H 301.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7A5FA3
RGBrgb(122, 95, 163)
HSLhsl(264, 27%, 51%)
HSVhsv(264, 42%, 64%)
CMYKcmyk(25.2%, 41.7%, 0%, 36.1%)
CIE-LABlab(45.59, 25.48, -32.81)
CIE-LCHlch(45.59, 41.54, 307.84°)
OKLaboklab(54.12% 0.0554 -0.0915)
OKLCHoklch(54.12% 0.107 301.2)
XYZxyz(18.7276, 14.9663, 36.5454)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5FA3 #88A35F
analogous
#5F66A3 #7A5FA3 #9C5FA3
triadic
#7A5FA3 #A37A5F #5FA37A
tetradic
#7A5FA3 #A35F66 #88A35F #5FA39C
square
#7A5FA3 #A35F66 #88A35F #5FA39C
split-complementary
#7A5FA3 #A39C5F #66A35F
monochromatic
#403256 #5D487D #7A5FA3 #9A86B9 #BBADD0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A5FA3#FFFFFF#000000##FFFFFF
##7A5FA31.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)
#4D6CA6
Deuteranopia (green-blind)
#536CA1
Tritanopia (blue-blind)
#736A79
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7a5fa3;
/* rgb */ color: rgb(122, 95, 163);
/* oklch */ color: oklch(54.1% 0.107 301.2);
Tailwind
colors: {
  custom: {
    50: '#a28dbe',
    500: '#7a5fa3',
    950: '#000000',
  },
}
SCSS
$custom: #7a5fa3;
$custom-light: #a28dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5fa3",
  "rgb": {
    "r": 122,
    "g": 95,
    "b": 163
  },
  "hsl": {
    "h": 263.824,
    "s": 26.984,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54116,
    "c": 0.10695,
    "h": 301.2
  },
  "luminance": 0.14966
}

Semantic roles & 50–950 ramp

primary
#7A5FA3
secondary
#B2BEA0
accent
#C3649E
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7A5FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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