#7F5CB7#7F5CB7

#7F5CB7 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.2% C 0.140 H 299.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7F5CB7
RGBrgb(127, 92, 183)
HSLhsl(263, 39%, 54%)
HSVhsv(263, 50%, 72%)
CMYKcmyk(30.6%, 49.7%, 0%, 28.2%)
CIE-LABlab(46.43, 33.79, -43.18)
CIE-LCHlch(46.43, 54.83, 308.05°)
OKLaboklab(55.21% 0.069 -0.1215)
OKLCHoklch(55.21% 0.14 299.6)
XYZxyz(21.1248, 15.5851, 46.6858)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CB7 #94B75C
analogous
#5C67B7 #7F5CB7 #AD5CB7
triadic
#7F5CB7 #B77F5C #5CB77F
tetradic
#7F5CB7 #B75C67 #94B75C #5CB7AD
square
#7F5CB7 #B75C67 #94B75C #5CB7AD
split-complementary
#7F5CB7 #B7AD5C #67B75C
monochromatic
#452F6A #614294 #7F5CB7 #A086CA #C2B1DD

Accessibility & contrast

On white

5.10
#7F5CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#7F5CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CB7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CB7#FFFFFF#000000##FFFFFF
##7F5CB71.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6EBA
Deuteranopia (green-blind)
#466DB5
Tritanopia (blue-blind)
#746D81
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f5cb7;
/* rgb */ color: rgb(127, 92, 183);
/* oklch */ color: oklch(55.2% 0.140 299.6);
Tailwind
colors: {
  custom: {
    50: '#a78bcd',
    500: '#7f5cb7',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cb7;
$custom-light: #a78bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cb7",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 263.077,
    "s": 38.723,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55205,
    "c": 0.13975,
    "h": 299.6
  },
  "luminance": 0.15585
}

Semantic roles & 50–950 ramp

primary
#7F5CB7
secondary
#BCCBA4
accent
#CF59A1
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #7F5CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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