#7F5CC5#7F5CC5

#7F5CC5 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.1% C 0.158 H 296.3°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7F5CC5
RGBrgb(127, 92, 197)
HSLhsl(260, 48%, 57%)
HSVhsv(260, 53%, 77%)
CMYKcmyk(35.5%, 53.3%, 0%, 22.7%)
CIE-LABlab(47.23, 37.46, -50.01)
CIE-LCHlch(47.23, 62.49, 306.83°)
OKLaboklab(56.07% 0.07 -0.1415)
OKLCHoklch(56.07% 0.158 296.3)
XYZxyz(22.6550, 16.1972, 54.7453)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CC5 #A2C55C
analogous
#5C6EC5 #7F5CC5 #B45CC5
triadic
#7F5CC5 #C57F5C #5CC57F
tetradic
#7F5CC5 #C55C6E #A2C55C #5CC5B4
square
#7F5CC5 #C55C6E #A2C55C #5CC5B4
split-complementary
#7F5CC5 #C5B45C #6EC55C
monochromatic
#462C7B #603CA8 #7F5CC5 #A289D5 #C6B6E5

Accessibility & contrast

On white

4.95
#7F5CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7F5CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CC5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CC5#FFFFFF#000000##FFFFFF
##7F5CC51.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3171C9
Deuteranopia (green-blind)
#3A6FC3
Tritanopia (blue-blind)
#6F7188
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f5cc5;
/* rgb */ color: rgb(127, 92, 197);
/* oklch */ color: oklch(56.1% 0.158 296.3);
Tailwind
colors: {
  custom: {
    50: '#a88bd7',
    500: '#7f5cc5',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cc5;
$custom-light: #a88bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cc5",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 197
  },
  "hsl": {
    "h": 260,
    "s": 47.511,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56065,
    "c": 0.15793,
    "h": 296.3
  },
  "luminance": 0.16198
}

Semantic roles & 50–950 ramp

primary
#7F5CC5
secondary
#C6D4A9
accent
#D751AA
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7F5CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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