#7F5CD7#7F5CD7

#7F5CD7 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.3% C 0.181 H 292.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7F5CD7
RGBrgb(127, 92, 215)
HSLhsl(257, 61%, 60%)
HSVhsv(257, 57%, 84%)
CMYKcmyk(40.9%, 57.2%, 0%, 15.7%)
CIE-LABlab(48.35, 42.31, -58.54)
CIE-LCHlch(48.35, 72.23, 305.86°)
OKLaboklab(57.25% 0.0704 -0.1666)
OKLCHoklch(57.25% 0.181 292.9)
XYZxyz(24.8420, 17.0720, 66.2632)
Luminance0.1707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CD7 #B4D75C
analogous
#5C77D7 #7F5CD7 #BC5CD7
triadic
#7F5CD7 #D77F5C #5CD77F
tetradic
#7F5CD7 #D75C77 #B4D75C #5CD7BC
square
#7F5CD7 #D75C77 #B4D75C #5CD7BC
split-complementary
#7F5CD7 #D7BC5C #77D75C
monochromatic
#442494 #5B30C5 #7F5CD7 #A68DE3 #CCBEEF

Accessibility & contrast

On white

4.76
#7F5CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7F5CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CD7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CD7#FFFFFF#000000##FFFFFF
##7F5CD71.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1174DB
Deuteranopia (green-blind)
#2171D4
Tritanopia (blue-blind)
#677791
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f5cd7;
/* rgb */ color: rgb(127, 92, 215);
/* oklch */ color: oklch(57.3% 0.181 292.9);
Tailwind
colors: {
  custom: {
    50: '#a98be4',
    500: '#7f5cd7',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cd7;
$custom-light: #a98be4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cd7",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 257.073,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.5725,
    "c": 0.18086,
    "h": 292.9
  },
  "luminance": 0.17073
}

Semantic roles & 50–950 ramp

primary
#7F5CD7
secondary
#D2DFB0
accent
#C81D98
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7F5CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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