#7F4CE6#7F4CE6

#7F4CE6 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.0% C 0.220 H 293.2°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7F4CE6
RGBrgb(127, 76, 230)
HSLhsl(260, 75%, 60%)
HSVhsv(260, 67%, 90%)
CMYKcmyk(44.8%, 67%, 0%, 9.8%)
CIE-LABlab(46.17, 55.00, -70.59)
CIE-LCHlch(46.17, 89.49, 307.93°)
OKLaboklab(56% 0.0865 -0.202)
OKLCHoklch(56% 0.22 293.2)
XYZxyz(25.6158, 15.3933, 76.4691)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CE6 #B3E64C
analogous
#4C66E6 #7F4CE6 #CC4CE6
triadic
#7F4CE6 #E67F4C #4CE67F
tetradic
#7F4CE6 #E64C66 #B3E64C #4CE6CC
square
#7F4CE6 #E64C66 #B3E64C #4CE6CC
split-complementary
#7F4CE6 #E6CC4C #66E64C
monochromatic
#4417A1 #5B1ED7 #7F4CE6 #A582ED #CCB7F5

Accessibility & contrast

On white

5.15
#7F4CE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7F4CE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CE6
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CE6#FFFFFF#000000##FFFFFF
##7F4CE61.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEB
Deuteranopia (green-blind)
#006AE3
Tritanopia (blue-blind)
#617293
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f4ce6;
/* rgb */ color: rgb(127, 76, 230);
/* oklch */ color: oklch(56.0% 0.220 293.2);
Tailwind
colors: {
  custom: {
    50: '#ac81ef',
    500: '#7f4ce6',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ce6;
$custom-light: #ac81ef;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ce6",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 230
  },
  "hsl": {
    "h": 259.87,
    "s": 75.49,
    "l": 60
  },
  "oklch": {
    "l": 0.55996,
    "c": 0.21974,
    "h": 293.2
  },
  "luminance": 0.15394
}

Semantic roles & 50–950 ramp

primary
#7F4CE6
secondary
#D1E5A9
accent
#F236B4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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