#7F5CDC#7F5CDC

#7F5CDC is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.6% C 0.187 H 292.1°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F5CDC
RGBrgb(127, 92, 220)
HSLhsl(256, 65%, 61%)
HSVhsv(256, 58%, 86%)
CMYKcmyk(42.3%, 58.2%, 0%, 13.7%)
CIE-LABlab(48.68, 43.68, -60.85)
CIE-LCHlch(48.68, 74.91, 305.67°)
OKLaboklab(57.59% 0.0704 -0.1734)
OKLCHoklch(57.59% 0.187 292.1)
XYZxyz(25.4943, 17.3329, 69.6986)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CDC #B9DC5C
analogous
#5C79DC #7F5CDC #BF5CDC
triadic
#7F5CDC #DC7F5C #5CDC7F
tetradic
#7F5CDC #DC5C79 #B9DC5C #5CDCBF
square
#7F5CDC #DC5C79 #B9DC5C #5CDCBF
split-complementary
#7F5CDC #DCBF5C #79DC5C
monochromatic
#43229C #592CCE #7F5CDC #A78EE7 #CEC1F2

Accessibility & contrast

On white

4.70
#7F5CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#7F5CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CDC
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CDC#FFFFFF#000000##FFFFFF
##7F5CDC1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#1471D9
Tritanopia (blue-blind)
#657893
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f5cdc;
/* rgb */ color: rgb(127, 92, 220);
/* oklch */ color: oklch(57.6% 0.187 292.1);
Tailwind
colors: {
  custom: {
    50: '#aa8be8',
    500: '#7f5cdc',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cdc;
$custom-light: #aa8be8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cdc",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 256.406,
    "s": 64.646,
    "l": 61.176
  },
  "oklch": {
    "l": 0.57593,
    "c": 0.18713,
    "h": 292.1
  },
  "luminance": 0.17334
}

Semantic roles & 50–950 ramp

primary
#7F5CDC
secondary
#D5E2B2
accent
#CC199B
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7F5CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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