#A257E7#A257E7

#A257E7 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.2% C 0.212 H 304.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#A257E7
RGBrgb(162, 87, 231)
HSLhsl(271, 75%, 62%)
HSVhsv(271, 62%, 91%)
CMYKcmyk(29.9%, 62.3%, 0%, 9.4%)
CIE-LABlab(52.14, 56.76, -61.30)
CIE-LCHlch(52.14, 83.54, 312.80°)
OKLaboklab(61.19% 0.1211 -0.1736)
OKLCHoklch(61.19% 0.212 304.9)
XYZxyz(32.7291, 20.2675, 77.7736)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A257E7 #9CE757
analogous
#5A57E7 #A257E7 #E757E4
triadic
#A257E7 #E7A257 #57E7A2
tetradic
#A257E7 #E75A57 #9CE757 #57E4E7
square
#A257E7 #E75A57 #9CE757 #57E4E7
split-complementary
#A257E7 #E4E757 #57E75A
monochromatic
#6518AB #8421DF #A257E7 #C08DEF #DDC2F6

Accessibility & contrast

On white

4.16
#A257E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#A257E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A257E7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A257E7#FFFFFF#000000##000000
##A257E71.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEB
Deuteranopia (green-blind)
#337CE4
Tritanopia (blue-blind)
#967597
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a257e7;
/* rgb */ color: rgb(162, 87, 231);
/* oklch */ color: oklch(61.2% 0.212 304.9);
Tailwind
colors: {
  custom: {
    50: '#c28aef',
    500: '#a257e7',
    950: '#000000',
  },
}
SCSS
$custom: #a257e7;
$custom-light: #c28aef;
$custom-dark: #000000;
JSON
{
  "hex": "#a257e7",
  "rgb": {
    "r": 162,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 271.25,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61194,
    "c": 0.21164,
    "h": 304.9
  },
  "luminance": 0.20267
}

Semantic roles & 50–950 ramp

primary
#A257E7
secondary
#CCE7B3
accent
#D70E6F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A257E7

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

Preview Lab → · Contrast checker → · Palette generator →

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