#7A5896#7A5896

#7A5896 is a mid, moderate violet. Relative luminance 0.133; OKLCH L 52.1% C 0.102 H 308.5°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7A5896
RGBrgb(122, 88, 150)
HSLhsl(273, 26%, 47%)
HSVhsv(273, 41%, 59%)
CMYKcmyk(18.7%, 41.3%, 0%, 41.2%)
CIE-LABlab(43.24, 26.48, -28.75)
CIE-LCHlch(43.24, 39.09, 312.64°)
OKLaboklab(52.14% 0.0633 -0.0797)
OKLCHoklch(52.14% 0.102 308.5)
XYZxyz(17.0197, 13.3192, 30.5225)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5896 #749658
analogous
#5B5896 #7A5896 #965893
triadic
#7A5896 #967A58 #58967A
tetradic
#7A5896 #965B58 #749658 #589396
square
#7A5896 #965B58 #749658 #589396
split-complementary
#7A5896 #939658 #58965B
monochromatic
#3B2B49 #5B416F #7A5896 #987AB1 #B6A1C8

Accessibility & contrast

On white

5.73
#7A5896 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#7A5896 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5896
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5896#FFFFFF#000000##FFFFFF
##7A58961.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6598
Deuteranopia (green-blind)
#536794
Tritanopia (blue-blind)
#766170
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7a5896;
/* rgb */ color: rgb(122, 88, 150);
/* oklch */ color: oklch(52.1% 0.102 308.5);
Tailwind
colors: {
  custom: {
    50: '#a188b5',
    500: '#7a5896',
    950: '#000000',
  },
}
SCSS
$custom: #7a5896;
$custom-light: #a188b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5896",
  "rgb": {
    "r": 122,
    "g": 88,
    "b": 150
  },
  "hsl": {
    "h": 272.903,
    "s": 26.05,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52137,
    "c": 0.10184,
    "h": 308.5
  },
  "luminance": 0.13319
}

Semantic roles & 50–950 ramp

primary
#7A5896
secondary
#A3B594
accent
#C2658F
background
#FAF8FB
surface
#F3EFF6
border
#CDCAD0
text
#0F0B11
muted
#7F7C80

Preview Lab

Preview with #7A5896

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

Preview Lab → · Contrast checker → · Palette generator →

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