#7F5BDD#7F5BDD

#7F5BDD is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.5% C 0.190 H 292.1°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7F5BDD
RGBrgb(127, 91, 221)
HSLhsl(257, 66%, 61%)
HSVhsv(257, 59%, 87%)
CMYKcmyk(42.5%, 58.8%, 0%, 13.3%)
CIE-LABlab(48.53, 44.51, -61.66)
CIE-LCHlch(48.53, 76.05, 305.83°)
OKLaboklab(57.51% 0.0715 -0.1758)
OKLCHoklch(57.51% 0.19 292.1)
XYZxyz(25.5411, 17.2139, 70.3695)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BDD #B9DD5B
analogous
#5B78DD #7F5BDD #C05BDD
triadic
#7F5BDD #DD7F5B #5BDD7F
tetradic
#7F5BDD #DD5B78 #B9DD5B #5BDDC0
square
#7F5BDD #DD5B78 #B9DD5B #5BDDC0
split-complementary
#7F5BDD #DDC05B #78DD5B
monochromatic
#43219D #592BD0 #7F5BDD #A78EE8 #CEC0F2

Accessibility & contrast

On white

4.73
#7F5BDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7F5BDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5BDD
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BDD#FFFFFF#000000##FFFFFF
##7F5BDD1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E1
Deuteranopia (green-blind)
#0A71DA
Tritanopia (blue-blind)
#657893
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f5bdd;
/* rgb */ color: rgb(127, 91, 221);
/* oklch */ color: oklch(57.5% 0.190 292.1);
Tailwind
colors: {
  custom: {
    50: '#aa8be8',
    500: '#7f5bdd',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bdd;
$custom-light: #aa8be8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bdd",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 221
  },
  "hsl": {
    "h": 256.615,
    "s": 65.657,
    "l": 61.176
  },
  "oklch": {
    "l": 0.57506,
    "c": 0.18974,
    "h": 292.1
  },
  "luminance": 0.17215
}

Semantic roles & 50–950 ramp

primary
#7F5BDD
secondary
#D5E2B1
accent
#CE189B
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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