#7F4CE1#7F4CE1

#7F4CE1 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.6% C 0.214 H 294.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7F4CE1
RGBrgb(127, 76, 225)
HSLhsl(261, 71%, 59%)
HSVhsv(261, 66%, 88%)
CMYKcmyk(43.6%, 66.2%, 0%, 11.8%)
CIE-LABlab(45.79, 53.68, -68.36)
CIE-LCHlch(45.79, 86.92, 308.14°)
OKLaboklab(55.61% 0.0872 -0.1955)
OKLCHoklch(55.61% 0.214 294)
XYZxyz(24.9238, 15.1165, 72.8242)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CE1 #AEE14C
analogous
#4C64E1 #7F4CE1 #CA4CE1
triadic
#7F4CE1 #E17F4C #4CE17F
tetradic
#7F4CE1 #E14C64 #AEE14C #4CE1CA
square
#7F4CE1 #E14C64 #AEE14C #4CE1CA
split-complementary
#7F4CE1 #E1CA4C #64E14C
monochromatic
#451A99 #5D22CD #7F4CE1 #A480EA #CAB5F3

Accessibility & contrast

On white

5.22
#7F4CE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7F4CE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CE1
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CE1#FFFFFF#000000##FFFFFF
##7F4CE11.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE6
Deuteranopia (green-blind)
#006ADE
Tritanopia (blue-blind)
#647090
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f4ce1;
/* rgb */ color: rgb(127, 76, 225);
/* oklch */ color: oklch(55.6% 0.214 294.0);
Tailwind
colors: {
  custom: {
    50: '#ab81eb',
    500: '#7f4ce1',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ce1;
$custom-light: #ab81eb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ce1",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 225
  },
  "hsl": {
    "h": 260.537,
    "s": 71.292,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5561,
    "c": 0.21403,
    "h": 294
  },
  "luminance": 0.15117
}

Semantic roles & 50–950 ramp

primary
#7F4CE1
secondary
#CEE2A7
accent
#EE3AB0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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