#7A5EA2#7A5EA2

#7A5EA2 is a mid, moderate violet. Relative luminance 0.148; OKLCH L 53.9% C 0.107 H 301.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7A5EA2
RGBrgb(122, 94, 162)
HSLhsl(265, 27%, 50%)
HSVhsv(265, 42%, 64%)
CMYKcmyk(24.7%, 42%, 0%, 36.5%)
CIE-LABlab(45.29, 25.83, -32.68)
CIE-LCHlch(45.29, 41.66, 308.33°)
OKLaboklab(53.88% 0.0567 -0.0911)
OKLCHoklch(53.88% 0.107 301.9)
XYZxyz(18.5489, 14.7516, 36.0455)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5EA2 #86A25E
analogous
#5E64A2 #7A5EA2 #9C5EA2
triadic
#7A5EA2 #A27A5E #5EA27A
tetradic
#7A5EA2 #A25E64 #86A25E #5EA29C
square
#7A5EA2 #A25E64 #86A25E #5EA29C
split-complementary
#7A5EA2 #A29C5E #64A25E
monochromatic
#403155 #5D477B #7A5EA2 #9A85B8 #BAACCF

Accessibility & contrast

On white

5.32
#7A5EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7A5EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5EA2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5EA2#FFFFFF#000000##FFFFFF
##7A5EA21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6BA5
Deuteranopia (green-blind)
#536BA0
Tritanopia (blue-blind)
#736978
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7a5ea2;
/* rgb */ color: rgb(122, 94, 162);
/* oklch */ color: oklch(53.9% 0.107 301.9);
Tailwind
colors: {
  custom: {
    50: '#a28cbe',
    500: '#7a5ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ea2;
$custom-light: #a28cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ea2",
  "rgb": {
    "r": 122,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 264.706,
    "s": 26.772,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53876,
    "c": 0.10731,
    "h": 301.9
  },
  "luminance": 0.14752
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A5EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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