#A254D6#A254D6

#A254D6 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.7% C 0.198 H 309.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#A254D6
RGBrgb(162, 84, 214)
HSLhsl(276, 61%, 58%)
HSVhsv(276, 61%, 84%)
CMYKcmyk(24.3%, 60.7%, 0%, 16.1%)
CIE-LABlab(50.54, 54.38, -54.24)
CIE-LCHlch(50.54, 76.81, 315.08°)
OKLaboklab(59.7% 0.1252 -0.1529)
OKLCHoklch(59.7% 0.198 309.3)
XYZxyz(30.2058, 18.8776, 65.6578)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254D6 #88D654
analogous
#6154D6 #A254D6 #D654C9
triadic
#A254D6 #D6A254 #54D6A2
tetradic
#A254D6 #D66154 #88D654 #54C9D6
square
#A254D6 #D66154 #88D654 #54C9D6
split-complementary
#A254D6 #C9D654 #54D661
monochromatic
#63228E #852EBF #A254D6 #BD85E2 #D8B7EE

Accessibility & contrast

On white

4.40
#A254D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#A254D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254D6
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254D6#FFFFFF#000000##000000
##A254D61.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A75DA
Deuteranopia (green-blind)
#4379D3
Tritanopia (blue-blind)
#9B6D8D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a254d6;
/* rgb */ color: rgb(162, 84, 214);
/* oklch */ color: oklch(59.7% 0.198 309.3);
Tailwind
colors: {
  custom: {
    50: '#c188e3',
    500: '#a254d6',
    950: '#000000',
  },
}
SCSS
$custom: #a254d6;
$custom-light: #c188e3;
$custom-dark: #000000;
JSON
{
  "hex": "#a254d6",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 214
  },
  "hsl": {
    "h": 276,
    "s": 61.321,
    "l": 58.431
  },
  "oklch": {
    "l": 0.59702,
    "c": 0.19759,
    "h": 309.3
  },
  "luminance": 0.18877
}

Semantic roles & 50–950 ramp

primary
#A254D6
secondary
#BEDDA9
accent
#E44384
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C15
muted
#827D84

Preview Lab

Preview with #A254D6

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

Preview Lab → · Contrast checker → · Palette generator →

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