#7F54CB#7F54CB

#7F54CB is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.2% C 0.177 H 296.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7F54CB
RGBrgb(127, 84, 203)
HSLhsl(262, 53%, 56%)
HSVhsv(262, 59%, 80%)
CMYKcmyk(37.4%, 58.6%, 0%, 20.4%)
CIE-LABlab(45.86, 43.59, -55.68)
CIE-LCHlch(45.86, 70.71, 308.05°)
OKLaboklab(55.17% 0.0801 -0.1582)
OKLCHoklch(55.17% 0.177 296.8)
XYZxyz(22.6995, 15.1641, 58.2194)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54CB #A0CB54
analogous
#5465CB #7F54CB #BB54CB
triadic
#7F54CB #CB7F54 #54CB7F
tetradic
#7F54CB #CB5465 #A0CB54 #54CBBB
square
#7F54CB #CB5465 #A0CB54 #54CBBB
split-complementary
#7F54CB #CBBB54 #65CB54
monochromatic
#46267E #6035AD #7F54CB #A283D9 #C5B2E8

Accessibility & contrast

On white

5.21
#7F54CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7F54CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F54CB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F54CB#FFFFFF#000000##FFFFFF
##7F54CB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6DCF
Deuteranopia (green-blind)
#256BC8
Tritanopia (blue-blind)
#6D6D87
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f54cb;
/* rgb */ color: rgb(127, 84, 203);
/* oklch */ color: oklch(55.2% 0.177 296.8);
Tailwind
colors: {
  custom: {
    50: '#a986db',
    500: '#7f54cb',
    950: '#000000',
  },
}
SCSS
$custom: #7f54cb;
$custom-light: #a986db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54cb",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 261.681,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55173,
    "c": 0.17729,
    "h": 296.8
  },
  "luminance": 0.15164
}

Semantic roles & 50–950 ramp

primary
#7F54CB
secondary
#C4D6A5
accent
#DD4BA8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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