#7F5ACA#7F5ACA

#7F5ACA is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.1% C 0.167 H 295.8°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7F5ACA
RGBrgb(127, 90, 202)
HSLhsl(260, 51%, 57%)
HSVhsv(260, 55%, 79%)
CMYKcmyk(37.1%, 55.4%, 0%, 20.8%)
CIE-LABlab(47.09, 39.94, -53.12)
CIE-LCHlch(47.09, 66.46, 306.94°)
OKLaboklab(56.06% 0.0727 -0.1507)
OKLCHoklch(56.06% 0.167 295.8)
XYZxyz(23.0665, 16.0882, 57.7557)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5ACA #A5CA5A
analogous
#5A6DCA #7F5ACA #B75ACA
triadic
#7F5ACA #CA7F5A #5ACA7F
tetradic
#7F5ACA #CA5A6D #A5CA5A #5ACAB7
square
#7F5ACA #CA5A6D #A5CA5A #5ACAB7
split-complementary
#7F5ACA #CAB75A #6DCA5A
monochromatic
#462980 #5F38AF #7F5ACA #A388D9 #C7B7E8

Accessibility & contrast

On white

4.98
#7F5ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7F5ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5ACA
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5ACA#FFFFFF#000000##FFFFFF
##7F5ACA1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2670CE
Deuteranopia (green-blind)
#326EC7
Tritanopia (blue-blind)
#6D7189
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f5aca;
/* rgb */ color: rgb(127, 90, 202);
/* oklch */ color: oklch(56.1% 0.167 295.8);
Tailwind
colors: {
  custom: {
    50: '#a88adb',
    500: '#7f5aca',
    950: '#000000',
  },
}
SCSS
$custom: #7f5aca;
$custom-light: #a88adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5aca",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 202
  },
  "hsl": {
    "h": 259.821,
    "s": 51.376,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56058,
    "c": 0.16731,
    "h": 295.8
  },
  "luminance": 0.16089
}

Semantic roles & 50–950 ramp

primary
#7F5ACA
secondary
#C8D7A9
accent
#DB4DAC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7F5ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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