#7F5CC7#7F5CC7

#7F5CC7 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.2% C 0.161 H 295.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7F5CC7
RGBrgb(127, 92, 199)
HSLhsl(260, 49%, 57%)
HSVhsv(260, 54%, 78%)
CMYKcmyk(36.2%, 53.8%, 0%, 22%)
CIE-LABlab(47.35, 37.99, -50.98)
CIE-LCHlch(47.35, 63.58, 306.70°)
OKLaboklab(56.19% 0.0701 -0.1444)
OKLCHoklch(56.19% 0.161 295.9)
XYZxyz(22.8857, 16.2894, 55.9602)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CC7 #A4C75C
analogous
#5C6FC7 #7F5CC7 #B45CC7
triadic
#7F5CC7 #C77F5C #5CC77F
tetradic
#7F5CC7 #C75C6F #A4C75C #5CC7B4
square
#7F5CC7 #C75C6F #A4C75C #5CC7B4
split-complementary
#7F5CC7 #C7B45C #6FC75C
monochromatic
#462B7D #5F3BAB #7F5CC7 #A38AD7 #C7B7E6

Accessibility & contrast

On white

4.93
#7F5CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7F5CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CC7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CC7#FFFFFF#000000##FFFFFF
##7F5CC71.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F71CB
Deuteranopia (green-blind)
#386FC5
Tritanopia (blue-blind)
#6E7289
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f5cc7;
/* rgb */ color: rgb(127, 92, 199);
/* oklch */ color: oklch(56.2% 0.161 295.9);
Tailwind
colors: {
  custom: {
    50: '#a88bd8',
    500: '#7f5cc7',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cc7;
$custom-light: #a88bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cc7",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 199
  },
  "hsl": {
    "h": 259.626,
    "s": 48.858,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56193,
    "c": 0.1605,
    "h": 295.9
  },
  "luminance": 0.1629
}

Semantic roles & 50–950 ramp

primary
#7F5CC7
secondary
#C7D5AA
accent
#D84FAC
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7F5CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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