#7F54DB#7F54DB

#7F54DB is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.3% C 0.197 H 293.8°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7F54DB
RGBrgb(127, 84, 219)
HSLhsl(259, 65%, 59%)
HSVhsv(259, 62%, 86%)
CMYKcmyk(42%, 61.6%, 0%, 14.1%)
CIE-LABlab(46.93, 47.84, -63.11)
CIE-LCHlch(46.93, 79.19, 307.17°)
OKLaboklab(56.3% 0.0794 -0.18)
OKLCHoklch(56.3% 0.197 293.8)
XYZxyz(24.7055, 15.9665, 68.7843)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54DB #B0DB54
analogous
#546DDB #7F54DB #C254DB
triadic
#7F54DB #DB7F54 #54DB7F
tetradic
#7F54DB #DB546D #B0DB54 #54DBC2
square
#7F54DB #DB546D #B0DB54 #54DBC2
split-complementary
#7F54DB #DBC254 #6DDB54
monochromatic
#451F95 #5C2AC8 #7F54DB #A587E6 #CBB9F0

Accessibility & contrast

On white

5.01
#7F54DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7F54DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F54DB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F54DB#FFFFFF#000000##FFFFFF
##7F54DB1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#667390
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f54db;
/* rgb */ color: rgb(127, 84, 219);
/* oklch */ color: oklch(56.3% 0.197 293.8);
Tailwind
colors: {
  custom: {
    50: '#aa86e7',
    500: '#7f54db',
    950: '#000000',
  },
}
SCSS
$custom: #7f54db;
$custom-light: #aa86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54db",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 259.111,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56296,
    "c": 0.19675,
    "h": 293.8
  },
  "luminance": 0.15967
}

Semantic roles & 50–950 ramp

primary
#7F54DB
secondary
#CFE0AB
accent
#E840B2
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F54DB

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

Preview Lab → · Contrast checker → · Palette generator →

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