#7F54CF#7F54CF

#7F54CF is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.4% C 0.182 H 296.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7F54CF
RGBrgb(127, 84, 207)
HSLhsl(261, 56%, 57%)
HSVhsv(261, 59%, 81%)
CMYKcmyk(38.6%, 59.4%, 0%, 18.8%)
CIE-LABlab(46.12, 44.64, -57.56)
CIE-LCHlch(46.12, 72.84, 307.80°)
OKLaboklab(55.45% 0.08 -0.1637)
OKLCHoklch(55.45% 0.182 296)
XYZxyz(23.1823, 15.3572, 60.7622)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54CF #A4CF54
analogous
#5467CF #7F54CF #BD54CF
triadic
#7F54CF #CF7F54 #54CF7F
tetradic
#7F54CF #CF5467 #A4CF54 #54CFBD
square
#7F54CF #CF5467 #A4CF54 #54CFBD
split-complementary
#7F54CF #CFBD54 #67CF54
monochromatic
#462584 #5F32B3 #7F54CF #A384DC #C7B4EA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F54CF#FFFFFF#000000##FFFFFF
##7F54CF1.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)
#006ED3
Deuteranopia (green-blind)
#1D6CCC
Tritanopia (blue-blind)
#6B6F89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f54cf;
/* rgb */ color: rgb(127, 84, 207);
/* oklch */ color: oklch(55.4% 0.182 296.0);
Tailwind
colors: {
  custom: {
    50: '#a986de',
    500: '#7f54cf',
    950: '#000000',
  },
}
SCSS
$custom: #7f54cf;
$custom-light: #a986de;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54cf",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 260.976,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55447,
    "c": 0.18218,
    "h": 296
  },
  "luminance": 0.15358
}

Semantic roles & 50–950 ramp

primary
#7F54CF
secondary
#C7D8A6
accent
#DF48AB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F54CF

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

Preview Lab → · Contrast checker → · Palette generator →

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