#A257DD#A257DD

#A257DD is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.5% C 0.201 H 307.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#A257DD
RGBrgb(162, 87, 221)
HSLhsl(274, 66%, 60%)
HSVhsv(274, 61%, 87%)
CMYKcmyk(26.7%, 60.6%, 0%, 13.3%)
CIE-LABlab(51.52, 54.47, -56.65)
CIE-LCHlch(51.52, 78.59, 313.87°)
OKLaboklab(60.55% 0.1214 -0.16)
OKLCHoklch(60.55% 0.201 307.2)
XYZxyz(31.3569, 19.7186, 70.5468)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A257DD #92DD57
analogous
#5F57DD #A257DD #DD57D5
triadic
#A257DD #DDA257 #57DDA2
tetradic
#A257DD #DD5F57 #92DD57 #57D5DD
square
#A257DD #DD5F57 #92DD57 #57D5DD
split-complementary
#A257DD #D5DD57 #57DD5F
monochromatic
#641F9A #852ACD #A257DD #BE8AE7 #DABDF2

Accessibility & contrast

On white

4.25
#A257DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#A257DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A257DD
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A257DD#FFFFFF#000000##000000
##A257DD1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1478E1
Deuteranopia (green-blind)
#3F7BDA
Tritanopia (blue-blind)
#997292
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a257dd;
/* rgb */ color: rgb(162, 87, 221);
/* oklch */ color: oklch(60.5% 0.201 307.2);
Tailwind
colors: {
  custom: {
    50: '#c18ae8',
    500: '#a257dd',
    950: '#000000',
  },
}
SCSS
$custom: #a257dd;
$custom-light: #c18ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#a257dd",
  "rgb": {
    "r": 162,
    "g": 87,
    "b": 221
  },
  "hsl": {
    "h": 273.582,
    "s": 66.337,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60545,
    "c": 0.20084,
    "h": 307.2
  },
  "luminance": 0.19718
}

Semantic roles & 50–950 ramp

primary
#A257DD
secondary
#C5E1AE
accent
#CE1768
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A257DD

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

Preview Lab → · Contrast checker → · Palette generator →

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