#7F54DD#7F54DD

#7F54DD is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.4% C 0.199 H 293.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7F54DD
RGBrgb(127, 84, 221)
HSLhsl(259, 67%, 60%)
HSVhsv(259, 62%, 87%)
CMYKcmyk(42.5%, 62%, 0%, 13.3%)
CIE-LABlab(47.07, 48.38, -64.02)
CIE-LCHlch(47.07, 80.25, 307.08°)
OKLaboklab(56.44% 0.0792 -0.1827)
OKLCHoklch(56.44% 0.199 293.4)
XYZxyz(24.9703, 16.0724, 70.1793)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54DD #B2DD54
analogous
#546EDD #7F54DD #C354DD
triadic
#7F54DD #DD7F54 #54DD7F
tetradic
#7F54DD #DD546E #B2DD54 #54DDC3
square
#7F54DD #DD546E #B2DD54 #54DDC3
split-complementary
#7F54DD #DDC354 #6EDD54
monochromatic
#451E98 #5C28CB #7F54DD #A587E7 #CBBAF1

Accessibility & contrast

On white

4.98
#7F54DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7F54DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F54DD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F54DD#FFFFFF#000000##FFFFFF
##7F54DD1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E1
Deuteranopia (green-blind)
#006DDA
Tritanopia (blue-blind)
#657391
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f54dd;
/* rgb */ color: rgb(127, 84, 221);
/* oklch */ color: oklch(56.4% 0.199 293.4);
Tailwind
colors: {
  custom: {
    50: '#aa86e8',
    500: '#7f54dd',
    950: '#000000',
  },
}
SCSS
$custom: #7f54dd;
$custom-light: #aa86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54dd",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 221
  },
  "hsl": {
    "h": 258.832,
    "s": 66.829,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56441,
    "c": 0.19915,
    "h": 293.4
  },
  "luminance": 0.16073
}

Semantic roles & 50–950 ramp

primary
#7F54DD
secondary
#D0E1AC
accent
#EA3EB4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F54DD

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

Preview Lab → · Contrast checker → · Palette generator →

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