#7F4CDE#7F4CDE

#7F4CDE is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.4% C 0.211 H 294.6°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7F4CDE
RGBrgb(127, 76, 222)
HSLhsl(261, 69%, 58%)
HSVhsv(261, 66%, 87%)
CMYKcmyk(42.8%, 65.8%, 0%, 12.9%)
CIE-LABlab(45.57, 52.89, -67.02)
CIE-LCHlch(45.57, 85.38, 308.28°)
OKLaboklab(55.38% 0.0876 -0.1915)
OKLCHoklch(55.38% 0.211 294.6)
XYZxyz(24.5181, 14.9542, 70.6877)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CDE #ABDE4C
analogous
#4C62DE #7F4CDE #C84CDE
triadic
#7F4CDE #DE7F4C #4CDE7F
tetradic
#7F4CDE #DE4C62 #ABDE4C #4CDEC8
square
#7F4CDE #DE4C62 #ABDE4C #4CDEC8
split-complementary
#7F4CDE #DEC84C #62DE4C
monochromatic
#461B94 #5E25C8 #7F4CDE #A480E8 #C9B3F1

Accessibility & contrast

On white

5.26
#7F4CDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7F4CDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CDE
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CDE#FFFFFF#000000##FFFFFF
##7F4CDE1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE2
Deuteranopia (green-blind)
#0069DB
Tritanopia (blue-blind)
#656F8F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f4cde;
/* rgb */ color: rgb(127, 76, 222);
/* oklch */ color: oklch(55.4% 0.211 294.6);
Tailwind
colors: {
  custom: {
    50: '#ab81e9',
    500: '#7f4cde',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cde;
$custom-light: #ab81e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cde",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 222
  },
  "hsl": {
    "h": 260.959,
    "s": 68.868,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55381,
    "c": 0.21059,
    "h": 294.6
  },
  "luminance": 0.14955
}

Semantic roles & 50–950 ramp

primary
#7F4CDE
secondary
#CCE0A6
accent
#EC3CAE
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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