#A254F1#A254F1

#A254F1 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.5% C 0.226 H 303.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#A254F1
RGBrgb(162, 84, 241)
HSLhsl(270, 85%, 64%)
HSVhsv(270, 65%, 95%)
CMYKcmyk(32.8%, 65.1%, 0%, 5.5%)
CIE-LABlab(52.26, 60.53, -66.72)
CIE-LCHlch(52.26, 90.09, 312.22°)
OKLaboklab(61.49% 0.1236 -0.1895)
OKLCHoklch(61.49% 0.226 303.1)
XYZxyz(33.9441, 20.3729, 85.3461)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254F1 #A3F154
analogous
#5454F1 #A254F1 #F154F1
triadic
#A254F1 #F1A254 #54F1A2
tetradic
#A254F1 #F15454 #A3F154 #54F1F1
square
#A254F1 #F15454 #A3F154 #54F1F1
split-complementary
#A254F1 #F1F154 #54F154
monochromatic
#650FBB #831BEC #A254F1 #C18DF6 #E0C5FA

Accessibility & contrast

On white

4.14
#A254F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#A254F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254F1
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254F1#FFFFFF#000000##000000
##A254F11.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF6
Deuteranopia (green-blind)
#177CEE
Tritanopia (blue-blind)
#92779C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a254f1;
/* rgb */ color: rgb(162, 84, 241);
/* oklch */ color: oklch(61.5% 0.226 303.1);
Tailwind
colors: {
  custom: {
    50: '#c389f7',
    500: '#a254f1',
    950: '#000000',
  },
}
SCSS
$custom: #a254f1;
$custom-light: #c389f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a254f1",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 241
  },
  "hsl": {
    "h": 269.809,
    "s": 84.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61486,
    "c": 0.22626,
    "h": 303.1
  },
  "luminance": 0.20373
}

Semantic roles & 50–950 ramp

primary
#A254F1
secondary
#D1ECB5
accent
#E10473
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #A254F1

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

Preview Lab → · Contrast checker → · Palette generator →

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