#A257EF#A257EF

#A257EF is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.7% C 0.220 H 303.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#A257EF
RGBrgb(162, 87, 239)
HSLhsl(270, 83%, 64%)
HSVhsv(270, 64%, 94%)
CMYKcmyk(32.2%, 63.6%, 0%, 6.3%)
CIE-LABlab(52.65, 58.62, -64.96)
CIE-LCHlch(52.65, 87.50, 312.06°)
OKLaboklab(61.73% 0.1205 -0.1844)
OKLCHoklch(61.73% 0.22 303.2)
XYZxyz(33.8849, 20.7298, 83.8607)
Luminance0.2073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A257EF #A4EF57
analogous
#5758EF #A257EF #EE57EF
triadic
#A257EF #EFA257 #57EFA2
tetradic
#A257EF #EF5758 #A4EF57 #57EFEE
square
#A257EF #EF5758 #A4EF57 #57EFEE
split-complementary
#A257EF #EFEE57 #58EF57
monochromatic
#6512BA #831FEA #A257EF #C18FF4 #E0C7FA

Accessibility & contrast

On white

4.08
#A257EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#A257EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A257EF
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A257EF#FFFFFF#000000##000000
##A257EF1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF4
Deuteranopia (green-blind)
#247DEC
Tritanopia (blue-blind)
#93789B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a257ef;
/* rgb */ color: rgb(162, 87, 239);
/* oklch */ color: oklch(61.7% 0.220 303.2);
Tailwind
colors: {
  custom: {
    50: '#c28bf5',
    500: '#a257ef',
    950: '#000000',
  },
}
SCSS
$custom: #a257ef;
$custom-light: #c28bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#a257ef",
  "rgb": {
    "r": 162,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 269.605,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61729,
    "c": 0.22026,
    "h": 303.2
  },
  "luminance": 0.2073
}

Semantic roles & 50–950 ramp

primary
#A257EF
secondary
#D1ECB6
accent
#DF0674
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #A257EF

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

Preview Lab → · Contrast checker → · Palette generator →

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