#7F4CE3#7F4CE3

#7F4CE3 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.8% C 0.216 H 293.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7F4CE3
RGBrgb(127, 76, 227)
HSLhsl(260, 73%, 59%)
HSVhsv(260, 67%, 89%)
CMYKcmyk(44.1%, 66.5%, 0%, 11%)
CIE-LABlab(45.94, 54.21, -69.26)
CIE-LCHlch(45.94, 87.95, 308.05°)
OKLaboklab(55.76% 0.0869 -0.1981)
OKLCHoklch(55.76% 0.216 293.7)
XYZxyz(25.1982, 15.2262, 74.2695)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CE3 #B0E34C
analogous
#4C65E3 #7F4CE3 #CB4CE3
triadic
#7F4CE3 #E37F4C #4CE37F
tetradic
#7F4CE3 #E34C65 #B0E34C #4CE3CB
square
#7F4CE3 #E34C65 #B0E34C #4CE3CB
split-complementary
#7F4CE3 #E3CB4C #65E34C
monochromatic
#45189C #5C21D1 #7F4CE3 #A581EB #CBB6F4

Accessibility & contrast

On white

5.19
#7F4CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7F4CE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CE3
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CE3#FFFFFF#000000##FFFFFF
##7F4CE31.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#006AE0
Tritanopia (blue-blind)
#637191
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f4ce3;
/* rgb */ color: rgb(127, 76, 227);
/* oklch */ color: oklch(55.8% 0.216 293.7);
Tailwind
colors: {
  custom: {
    50: '#ac81ed',
    500: '#7f4ce3',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ce3;
$custom-light: #ac81ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ce3",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 227
  },
  "hsl": {
    "h": 260.265,
    "s": 72.947,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55764,
    "c": 0.21632,
    "h": 293.7
  },
  "luminance": 0.15227
}

Semantic roles & 50–950 ramp

primary
#7F4CE3
secondary
#CFE3A8
accent
#F038B2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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