#7F5CC0#7F5CC0

#7F5CC0 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.8% C 0.151 H 297.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7F5CC0
RGBrgb(127, 92, 192)
HSLhsl(261, 44%, 56%)
HSVhsv(261, 52%, 75%)
CMYKcmyk(33.9%, 52.1%, 0%, 24.7%)
CIE-LABlab(46.94, 36.14, -47.59)
CIE-LCHlch(46.94, 59.76, 307.21°)
OKLaboklab(55.75% 0.0697 -0.1345)
OKLCHoklch(55.75% 0.151 297.4)
XYZxyz(22.0916, 15.9718, 51.7779)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CC0 #9DC05C
analogous
#5C6BC0 #7F5CC0 #B15CC0
triadic
#7F5CC0 #C07F5C #5CC07F
tetradic
#7F5CC0 #C05C6B #9DC05C #5CC0B1
square
#7F5CC0 #C05C6B #9DC05C #5CC0B1
split-complementary
#7F5CC0 #C0B15C #6BC05C
monochromatic
#462D75 #613EA1 #7F5CC0 #A288D1 #C4B4E2

Accessibility & contrast

On white

5.01
#7F5CC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7F5CC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CC0
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CC0#FFFFFF#000000##FFFFFF
##7F5CC01.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3670C3
Deuteranopia (green-blind)
#3F6EBE
Tritanopia (blue-blind)
#717085
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f5cc0;
/* rgb */ color: rgb(127, 92, 192);
/* oklch */ color: oklch(55.8% 0.151 297.4);
Tailwind
colors: {
  custom: {
    50: '#a78bd3',
    500: '#7f5cc0',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cc0;
$custom-light: #a78bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cc0",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 192
  },
  "hsl": {
    "h": 261,
    "s": 44.248,
    "l": 55.686
  },
  "oklch": {
    "l": 0.55752,
    "c": 0.15147,
    "h": 297.4
  },
  "luminance": 0.15972
}

Semantic roles & 50–950 ramp

primary
#7F5CC0
secondary
#C2D1A7
accent
#D454A7
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7F5CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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