#7F4CE5#7F4CE5

#7F4CE5 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.9% C 0.219 H 293.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7F4CE5
RGBrgb(127, 76, 229)
HSLhsl(260, 75%, 60%)
HSVhsv(260, 67%, 90%)
CMYKcmyk(44.5%, 66.8%, 0%, 10.2%)
CIE-LABlab(46.09, 54.74, -70.15)
CIE-LCHlch(46.09, 88.98, 307.97°)
OKLaboklab(55.92% 0.0866 -0.2007)
OKLCHoklch(55.92% 0.219 293.3)
XYZxyz(25.4758, 15.3373, 75.7317)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CE5 #B2E54C
analogous
#4C66E5 #7F4CE5 #CC4CE5
triadic
#7F4CE5 #E57F4C #4CE57F
tetradic
#7F4CE5 #E54C66 #B2E54C #4CE5CC
square
#7F4CE5 #E54C66 #B2E54C #4CE5CC
split-complementary
#7F4CE5 #E5CC4C #66E54C
monochromatic
#45179F #5C1FD5 #7F4CE5 #A581ED #CBB7F5

Accessibility & contrast

On white

5.16
#7F4CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7F4CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CE5
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CE5#FFFFFF#000000##FFFFFF
##7F4CE51.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEA
Deuteranopia (green-blind)
#006AE2
Tritanopia (blue-blind)
#627192
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f4ce5;
/* rgb */ color: rgb(127, 76, 229);
/* oklch */ color: oklch(55.9% 0.219 293.3);
Tailwind
colors: {
  custom: {
    50: '#ac81ee',
    500: '#7f4ce5',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ce5;
$custom-light: #ac81ee;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ce5",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 229
  },
  "hsl": {
    "h": 260,
    "s": 74.634,
    "l": 59.804
  },
  "oklch": {
    "l": 0.55918,
    "c": 0.2186,
    "h": 293.3
  },
  "luminance": 0.15338
}

Semantic roles & 50–950 ramp

primary
#7F4CE5
secondary
#D0E4A9
accent
#F137B3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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