#7F5ABA#7F5ABA

#7F5ABA is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.0% C 0.147 H 299.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7F5ABA
RGBrgb(127, 90, 186)
HSLhsl(263, 41%, 54%)
HSVhsv(263, 52%, 73%)
CMYKcmyk(31.7%, 51.6%, 0%, 27.1%)
CIE-LABlab(46.14, 35.73, -45.39)
CIE-LCHlch(46.14, 57.77, 308.21°)
OKLaboklab(55.04% 0.0719 -0.128)
OKLCHoklch(55.04% 0.147 299.3)
XYZxyz(21.2694, 15.3694, 48.2909)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5ABA #95BA5A
analogous
#5A65BA #7F5ABA #AF5ABA
triadic
#7F5ABA #BA7F5A #5ABA7F
tetradic
#7F5ABA #BA5A65 #95BA5A #5ABAAF
square
#7F5ABA #BA5A65 #95BA5A #5ABAAF
split-complementary
#7F5ABA #BAAF5A #65BA5A
monochromatic
#462D6C #613F97 #7F5ABA #A085CC #C2B0DE

Accessibility & contrast

On white

5.15
#7F5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7F5ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5ABA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5ABA#FFFFFF#000000##FFFFFF
##7F5ABA1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386DBD
Deuteranopia (green-blind)
#426DB8
Tritanopia (blue-blind)
#736C81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f5aba;
/* rgb */ color: rgb(127, 90, 186);
/* oklch */ color: oklch(55.0% 0.147 299.3);
Tailwind
colors: {
  custom: {
    50: '#a789cf',
    500: '#7f5aba',
    950: '#000000',
  },
}
SCSS
$custom: #7f5aba;
$custom-light: #a789cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5aba",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 263.125,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55044,
    "c": 0.14683,
    "h": 299.3
  },
  "luminance": 0.1537
}

Semantic roles & 50–950 ramp

primary
#7F5ABA
secondary
#BDCCA3
accent
#D157A2
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #7F5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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