#7A5FA2#7A5FA2

#7A5FA2 is a mid, moderate violet. Relative luminance 0.149; OKLCH L 54.1% C 0.106 H 301.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7A5FA2
RGBrgb(122, 95, 162)
HSLhsl(264, 26%, 50%)
HSVhsv(264, 41%, 64%)
CMYKcmyk(24.7%, 41.4%, 0%, 36.5%)
CIE-LABlab(45.54, 25.23, -32.29)
CIE-LCHlch(45.54, 40.98, 308.00°)
OKLaboklab(54.06% 0.0552 -0.09)
OKLCHoklch(54.06% 0.106 301.5)
XYZxyz(18.6384, 14.9306, 36.0754)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5FA2 #87A25F
analogous
#5F65A2 #7A5FA2 #9B5FA2
triadic
#7A5FA2 #A27A5F #5FA27A
tetradic
#7A5FA2 #A25F65 #87A25F #5FA29B
square
#7A5FA2 #A25F65 #87A25F #5FA29B
split-complementary
#7A5FA2 #A29B5F #65A25F
monochromatic
#403155 #5D487C #7A5FA2 #9A86B8 #BAACCF

Accessibility & contrast

On white

5.27
#7A5FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7A5FA2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5FA2#FFFFFF#000000##FFFFFF
##7A5FA21.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6BA5
Deuteranopia (green-blind)
#546CA0
Tritanopia (blue-blind)
#736A79
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7a5fa2;
/* rgb */ color: rgb(122, 95, 162);
/* oklch */ color: oklch(54.1% 0.106 301.5);
Tailwind
colors: {
  custom: {
    50: '#a28dbe',
    500: '#7a5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7a5fa2;
$custom-light: #a28dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5fa2",
  "rgb": {
    "r": 122,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 264.179,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54063,
    "c": 0.10558,
    "h": 301.5
  },
  "luminance": 0.14931
}

Semantic roles & 50–950 ramp

primary
#7A5FA2
secondary
#B1BD9F
accent
#C3659D
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7A5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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