#A257BC#A257BC

#A257BC is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.6% C 0.165 H 316.7°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#A257BC
RGBrgb(162, 87, 188)
HSLhsl(285, 43%, 54%)
HSVhsv(285, 54%, 74%)
CMYKcmyk(13.8%, 53.7%, 0%, 26.3%)
CIE-LABlab(49.65, 47.25, -40.72)
CIE-LCHlch(49.65, 62.37, 319.25°)
OKLaboklab(58.58% 0.1204 -0.1134)
OKLCHoklch(58.58% 0.165 316.7)
XYZxyz(27.3843, 18.1295, 49.6240)
Luminance0.1813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A257BC #71BC57
analogous
#7057BC #A257BC #BC57A4
triadic
#A257BC #BCA257 #57BCA2
tetradic
#A257BC #BC7057 #71BC57 #57A4BC
square
#A257BC #BC7057 #71BC57 #57A4BC
split-complementary
#A257BC #A4BC57 #57BC70
monochromatic
#5C2C6D #813D99 #A257BC #BA83CD #D2AFDF

Accessibility & contrast

On white

4.54
#A257BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#A257BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A257BC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A257BC#FFFFFF#000000##000000
##A257BC1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4171BF
Deuteranopia (green-blind)
#5978B9
Tritanopia (blue-blind)
#A16781
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #a257bc;
/* rgb */ color: rgb(162, 87, 188);
/* oklch */ color: oklch(58.6% 0.165 316.7);
Tailwind
colors: {
  custom: {
    50: '#c089d0',
    500: '#a257bc',
    950: '#000000',
  },
}
SCSS
$custom: #a257bc;
$custom-light: #c089d0;
$custom-dark: #000000;
JSON
{
  "hex": "#a257bc",
  "rgb": {
    "r": 162,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 284.554,
    "s": 42.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5858,
    "c": 0.16541,
    "h": 316.7
  },
  "luminance": 0.18129
}

Semantic roles & 50–950 ramp

primary
#A257BC
secondary
#ADCDA2
accent
#D35575
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#120C14
muted
#817D82

Preview Lab

Preview with #A257BC

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

Preview Lab → · Contrast checker → · Palette generator →

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