#A257EC#A257EC

#A257EC is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.5% C 0.217 H 303.8°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#A257EC
RGBrgb(162, 87, 236)
HSLhsl(270, 80%, 63%)
HSVhsv(270, 63%, 93%)
CMYKcmyk(31.4%, 63.1%, 0%, 7.5%)
CIE-LABlab(52.46, 57.92, -63.59)
CIE-LCHlch(52.46, 86.02, 312.33°)
OKLaboklab(61.53% 0.1207 -0.1803)
OKLCHoklch(61.53% 0.217 303.8)
XYZxyz(33.4454, 20.5540, 81.5459)
Luminance0.2055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A257EC #A1EC57
analogous
#5757EC #A257EC #EC57EC
triadic
#A257EC #ECA257 #57ECA2
tetradic
#A257EC #EC5757 #A1EC57 #57ECEC
square
#A257EC #EC5757 #A1EC57 #57ECEC
split-complementary
#A257EC #ECEC57 #57EC57
monochromatic
#6514B4 #8420E6 #A257EC #C08EF2 #DFC5F8

Accessibility & contrast

On white

4.11
#A257EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#A257EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A257EC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A257EC#FFFFFF#000000##000000
##A257EC1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#2A7DE9
Tritanopia (blue-blind)
#94779A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a257ec;
/* rgb */ color: rgb(162, 87, 236);
/* oklch */ color: oklch(61.5% 0.217 303.8);
Tailwind
colors: {
  custom: {
    50: '#c28af3',
    500: '#a257ec',
    950: '#000000',
  },
}
SCSS
$custom: #a257ec;
$custom-light: #c28af3;
$custom-dark: #000000;
JSON
{
  "hex": "#a257ec",
  "rgb": {
    "r": 162,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 270.201,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61527,
    "c": 0.21704,
    "h": 303.8
  },
  "luminance": 0.20554
}

Semantic roles & 50–950 ramp

primary
#A257EC
secondary
#CFEAB5
accent
#DC0A72
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A257EC

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

Preview Lab → · Contrast checker → · Palette generator →

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