#7F54F0#7F54F0

#7F54F0 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.9% C 0.222 H 290.4°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7F54F0
RGBrgb(127, 84, 240)
HSLhsl(257, 84%, 64%)
HSVhsv(257, 65%, 94%)
CMYKcmyk(47.1%, 65%, 0%, 5.9%)
CIE-LABlab(48.44, 53.53, -72.53)
CIE-LCHlch(48.44, 90.14, 306.43°)
OKLaboklab(57.86% 0.0774 -0.2077)
OKLCHoklch(57.86% 0.222 290.4)
XYZxyz(27.6464, 17.1429, 84.2734)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F54F0 #C5F054
analogous
#5477F0 #7F54F0 #CD54F0
triadic
#7F54F0 #F07F54 #54F07F
tetradic
#7F54F0 #F05477 #C5F054 #54F0CD
square
#7F54F0 #F05477 #C5F054 #54F0CD
split-complementary
#7F54F0 #F0CD54 #77F054
monochromatic
#3F10B9 #551CEB #7F54F0 #A98CF5 #D3C5FA

Accessibility & contrast

On white

4.74
#7F54F0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#7F54F0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F54F0
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F54F0#FFFFFF#000000##FFFFFF
##7F54F01.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F5
Deuteranopia (green-blind)
#006FED
Tritanopia (blue-blind)
#5B7A9B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f54f0;
/* rgb */ color: rgb(127, 84, 240);
/* oklch */ color: oklch(57.9% 0.222 290.4);
Tailwind
colors: {
  custom: {
    50: '#ac87f6',
    500: '#7f54f0',
    950: '#000000',
  },
}
SCSS
$custom: #7f54f0;
$custom-light: #ac87f6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f54f0",
  "rgb": {
    "r": 127,
    "g": 84,
    "b": 240
  },
  "hsl": {
    "h": 256.538,
    "s": 83.871,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57864,
    "c": 0.22166,
    "h": 290.4
  },
  "luminance": 0.17144
}

Semantic roles & 50–950 ramp

primary
#7F54F0
secondary
#DCECB4
accent
#E005A4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F54F0

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

Preview Lab → · Contrast checker → · Palette generator →

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