#A257DC#A257DC

#A257DC is a mid, vivid violet. Relative luminance 0.197; OKLCH L 60.5% C 0.200 H 307.4°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#A257DC
RGBrgb(162, 87, 220)
HSLhsl(274, 66%, 60%)
HSVhsv(274, 60%, 86%)
CMYKcmyk(26.4%, 60.5%, 0%, 13.7%)
CIE-LABlab(51.46, 54.24, -56.18)
CIE-LCHlch(51.46, 78.09, 313.99°)
OKLaboklab(60.48% 0.1215 -0.1586)
OKLCHoklch(60.48% 0.2 307.4)
XYZxyz(31.2241, 19.6655, 69.8472)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A257DC #91DC57
analogous
#6057DC #A257DC #DC57D3
triadic
#A257DC #DCA257 #57DCA2
tetradic
#A257DC #DC6057 #91DC57 #57D3DC
square
#A257DC #DC6057 #91DC57 #57D3DC
split-complementary
#A257DC #D3DC57 #57DC60
monochromatic
#642099 #852ACB #A257DC #BE8AE7 #DABCF1

Accessibility & contrast

On white

4.26
#A257DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#A257DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A257DC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A257DC#FFFFFF#000000##000000
##A257DC1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1778E0
Deuteranopia (green-blind)
#407BD9
Tritanopia (blue-blind)
#997191
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a257dc;
/* rgb */ color: rgb(162, 87, 220);
/* oklch */ color: oklch(60.5% 0.200 307.4);
Tailwind
colors: {
  custom: {
    50: '#c18ae7',
    500: '#a257dc',
    950: '#000000',
  },
}
SCSS
$custom: #a257dc;
$custom-light: #c18ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#a257dc",
  "rgb": {
    "r": 162,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 273.835,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60482,
    "c": 0.19976,
    "h": 307.4
  },
  "luminance": 0.19665
}

Semantic roles & 50–950 ramp

primary
#A257DC
secondary
#C4E1AE
accent
#CD1867
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A257DC

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

Preview Lab → · Contrast checker → · Palette generator →

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