#7F54BB#7F54BB

#7F54BB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.1% C 0.157 H 300.5°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7F54BB
RGBrgb(127, 84, 187)
HSLhsl(265, 43%, 53%)
HSVhsv(265, 55%, 73%)
CMYKcmyk(32.1%, 55.1%, 0%, 26.7%)
CIE-LABlab(44.86, 39.42, -48.01)
CIE-LCHlch(44.86, 62.13, 309.39°)
OKLaboklab(54.12% 0.0799 -0.1357)
OKLCHoklch(54.12% 0.157 300.5)
XYZxyz(20.8902, 14.4404, 48.6908)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54BB #90BB54
analogous
#545CBB #7F54BB #B354BB
triadic
#7F54BB #BB7F54 #54BB7F
tetradic
#7F54BB #BB545C #90BB54 #54BBB3
square
#7F54BB #BB545C #90BB54 #54BBB3
split-complementary
#7F54BB #BBB354 #5CBB54
monochromatic
#452A6A #613C96 #7F54BB #A080CC #C1ACDE

Accessibility & contrast

On white

5.40
#7F54BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7F54BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F54BB
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F54BB#FFFFFF#000000##FFFFFF
##7F54BB1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6ABE
Deuteranopia (green-blind)
#3969B9
Tritanopia (blue-blind)
#73687F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f54bb;
/* rgb */ color: rgb(127, 84, 187);
/* oklch */ color: oklch(54.1% 0.157 300.5);
Tailwind
colors: {
  custom: {
    50: '#a785d0',
    500: '#7f54bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f54bb;
$custom-light: #a785d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54bb",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 187
  },
  "hsl": {
    "h": 265.049,
    "s": 43.096,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54117,
    "c": 0.15746,
    "h": 300.5
  },
  "luminance": 0.14441
}

Semantic roles & 50–950 ramp

primary
#7F54BB
secondary
#B9CC9F
accent
#D3559E
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7F54BB

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

Preview Lab → · Contrast checker → · Palette generator →

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