#7F5CBD#7F5CBD

#7F5CBD is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.6% C 0.148 H 298.1°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7F5CBD
RGBrgb(127, 92, 189)
HSLhsl(262, 42%, 55%)
HSVhsv(262, 51%, 74%)
CMYKcmyk(32.8%, 51.3%, 0%, 25.9%)
CIE-LABlab(46.76, 35.35, -46.13)
CIE-LCHlch(46.76, 58.12, 307.46°)
OKLaboklab(55.57% 0.0695 -0.1302)
OKLCHoklch(55.57% 0.148 298.1)
XYZxyz(21.7626, 15.8402, 50.0452)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CBD #9ABD5C
analogous
#5C6ABD #7F5CBD #AF5CBD
triadic
#7F5CBD #BD7F5C #5CBD7F
tetradic
#7F5CBD #BD5C6A #9ABD5C #5CBDAF
square
#7F5CBD #BD5C6A #9ABD5C #5CBDAF
split-complementary
#7F5CBD #BDAF5C #6ABD5C
monochromatic
#462E71 #613F9C #7F5CBD #A188CF #C3B3E0

Accessibility & contrast

On white

5.04
#7F5CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7F5CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CBD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CBD#FFFFFF#000000##FFFFFF
##7F5CBD1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396FC0
Deuteranopia (green-blind)
#426EBB
Tritanopia (blue-blind)
#726F84
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f5cbd;
/* rgb */ color: rgb(127, 92, 189);
/* oklch */ color: oklch(55.6% 0.148 298.1);
Tailwind
colors: {
  custom: {
    50: '#a78bd1',
    500: '#7f5cbd',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cbd;
$custom-light: #a78bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cbd",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 189
  },
  "hsl": {
    "h": 261.649,
    "s": 42.358,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55567,
    "c": 0.14756,
    "h": 298.1
  },
  "luminance": 0.1584
}

Semantic roles & 50–950 ramp

primary
#7F5CBD
secondary
#C0CFA6
accent
#D256A5
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82

Preview Lab

Preview with #7F5CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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