#A254DF#A254DF

#A254DF is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.3% C 0.207 H 307.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#A254DF
RGBrgb(162, 84, 223)
HSLhsl(274, 68%, 60%)
HSVhsv(274, 62%, 87%)
CMYKcmyk(27.4%, 62.3%, 0%, 12.5%)
CIE-LABlab(51.09, 56.40, -58.47)
CIE-LCHlch(51.09, 81.24, 313.97°)
OKLaboklab(60.28% 0.1249 -0.1653)
OKLCHoklch(60.28% 0.207 307.1)
XYZxyz(31.3871, 19.3501, 71.8792)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254DF #91DF54
analogous
#5C54DF #A254DF #DF54D7
triadic
#A254DF #DFA254 #54DFA2
tetradic
#A254DF #DF5C54 #91DF54 #54D7DF
square
#A254DF #DF5C54 #91DF54 #54D7DF
split-complementary
#A254DF #D7DF54 #54DF5C
monochromatic
#641D9C #8527CF #A254DF #BE88E9 #DABBF2

Accessibility & contrast

On white

4.31
#A254DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#A254DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254DF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254DF#FFFFFF#000000##000000
##A254DF1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#397ADC
Tritanopia (blue-blind)
#987092
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a254df;
/* rgb */ color: rgb(162, 84, 223);
/* oklch */ color: oklch(60.3% 0.207 307.1);
Tailwind
colors: {
  custom: {
    50: '#c288ea',
    500: '#a254df',
    950: '#000000',
  },
}
SCSS
$custom: #a254df;
$custom-light: #c288ea;
$custom-dark: #000000;
JSON
{
  "hex": "#a254df",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 223
  },
  "hsl": {
    "h": 273.669,
    "s": 68.473,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60278,
    "c": 0.20716,
    "h": 307.1
  },
  "luminance": 0.1935
}

Semantic roles & 50–950 ramp

primary
#A254DF
secondary
#C4E2AD
accent
#D01567
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A254DF

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

Preview Lab → · Contrast checker → · Palette generator →

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