#7F5CC2#7F5CC2

#7F5CC2 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.9% C 0.154 H 297.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7F5CC2
RGBrgb(127, 92, 194)
HSLhsl(261, 46%, 56%)
HSVhsv(261, 53%, 76%)
CMYKcmyk(34.5%, 52.6%, 0%, 23.9%)
CIE-LABlab(47.05, 36.67, -48.57)
CIE-LCHlch(47.05, 60.85, 307.05°)
OKLaboklab(55.88% 0.0699 -0.1373)
OKLCHoklch(55.88% 0.154 297)
XYZxyz(22.3147, 16.0610, 52.9529)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CC2 #9FC25C
analogous
#5C6CC2 #7F5CC2 #B25CC2
triadic
#7F5CC2 #C27F5C #5CC27F
tetradic
#7F5CC2 #C25C6C #9FC25C #5CC2B2
square
#7F5CC2 #C25C6C #9FC25C #5CC2B2
split-complementary
#7F5CC2 #C2B25C #6CC25C
monochromatic
#462D77 #603DA4 #7F5CC2 #A289D3 #C5B5E3

Accessibility & contrast

On white

4.99
#7F5CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7F5CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CC2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CC2#FFFFFF#000000##FFFFFF
##7F5CC21.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3470C6
Deuteranopia (green-blind)
#3D6EC0
Tritanopia (blue-blind)
#707086
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f5cc2;
/* rgb */ color: rgb(127, 92, 194);
/* oklch */ color: oklch(55.9% 0.154 297.0);
Tailwind
colors: {
  custom: {
    50: '#a78bd5',
    500: '#7f5cc2',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cc2;
$custom-light: #a78bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cc2",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 260.588,
    "s": 45.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55876,
    "c": 0.15405,
    "h": 297
  },
  "luminance": 0.16061
}

Semantic roles & 50–950 ramp

primary
#7F5CC2
secondary
#C4D2A8
accent
#D553A8
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7F5CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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