#A257E9#A257E9

#A257E9 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.3% C 0.214 H 304.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#A257E9
RGBrgb(162, 87, 233)
HSLhsl(271, 77%, 63%)
HSVhsv(271, 63%, 91%)
CMYKcmyk(30.5%, 62.7%, 0%, 8.6%)
CIE-LABlab(52.27, 57.22, -62.22)
CIE-LCHlch(52.27, 84.53, 312.60°)
OKLaboklab(61.33% 0.1209 -0.1763)
OKLCHoklch(61.33% 0.214 304.4)
XYZxyz(33.0132, 20.3811, 79.2697)
Luminance0.2038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A257E9 #9EE957
analogous
#5957E9 #A257E9 #E957E7
triadic
#A257E9 #E9A257 #57E9A2
tetradic
#A257E9 #E95957 #9EE957 #57E7E9
square
#A257E9 #E95957 #9EE957 #57E7E9
split-complementary
#A257E9 #E7E957 #57E959
monochromatic
#6517AF #8421E2 #A257E9 #C08DF0 #DEC3F7

Accessibility & contrast

On white

4.14
#A257E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#A257E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A257E9
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A257E9#FFFFFF#000000##000000
##A257E91.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEE
Deuteranopia (green-blind)
#2F7DE6
Tritanopia (blue-blind)
#957698
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a257e9;
/* rgb */ color: rgb(162, 87, 233);
/* oklch */ color: oklch(61.3% 0.214 304.4);
Tailwind
colors: {
  custom: {
    50: '#c28af1',
    500: '#a257e9',
    950: '#000000',
  },
}
SCSS
$custom: #a257e9;
$custom-light: #c28af1;
$custom-dark: #000000;
JSON
{
  "hex": "#a257e9",
  "rgb": {
    "r": 162,
    "g": 87,
    "b": 233
  },
  "hsl": {
    "h": 270.822,
    "s": 76.842,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61327,
    "c": 0.2138,
    "h": 304.4
  },
  "luminance": 0.20381
}

Semantic roles & 50–950 ramp

primary
#A257E9
secondary
#CDE8B3
accent
#D90C70
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A257E9

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

Preview Lab → · Contrast checker → · Palette generator →

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