#A54FEB#A54FEB

#A54FEB is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.8% C 0.227 H 306.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#A54FEB
RGBrgb(165, 79, 235)
HSLhsl(273, 80%, 62%)
HSVhsv(273, 66%, 92%)
CMYKcmyk(29.8%, 66.4%, 0%, 7.8%)
CIE-LABlab(51.37, 62.11, -64.77)
CIE-LCHlch(51.37, 89.74, 313.80°)
OKLaboklab(60.8% 0.1334 -0.1837)
OKLCHoklch(60.8% 0.227 306)
XYZxyz(33.3052, 19.5897, 80.6078)
Luminance0.1959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A54FEB #95EB4F
analogous
#574FEB #A54FEB #EB4FE3
triadic
#A54FEB #EBA54F #4FEBA5
tetradic
#A54FEB #EB574F #95EB4F #4FE3EB
square
#A54FEB #EB574F #95EB4F #4FE3EB
split-complementary
#A54FEB #E3EB4F #4FEB57
monochromatic
#6814AC #891AE3 #A54FEB #C186F1 #DDBDF7

Accessibility & contrast

On white

4.27
#A54FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#A54FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A54FEB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A54FEB#FFFFFF#000000##000000
##A54FEB1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#227BE8
Tritanopia (blue-blind)
#997197
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a54feb;
/* rgb */ color: rgb(165, 79, 235);
/* oklch */ color: oklch(60.8% 0.227 306.0);
Tailwind
colors: {
  custom: {
    50: '#c586f2',
    500: '#a54feb',
    950: '#000000',
  },
}
SCSS
$custom: #a54feb;
$custom-light: #c586f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a54feb",
  "rgb": {
    "r": 165,
    "g": 79,
    "b": 235
  },
  "hsl": {
    "h": 273.077,
    "s": 79.592,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60802,
    "c": 0.227,
    "h": 306
  },
  "luminance": 0.19589
}

Semantic roles & 50–950 ramp

primary
#A54FEB
secondary
#C8E8AE
accent
#DC0A68
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A54FEB

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

Preview Lab → · Contrast checker → · Palette generator →

#A54FEB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva