#A257E3#A257E3

#A257E3 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.9% C 0.207 H 305.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#A257E3
RGBrgb(162, 87, 227)
HSLhsl(272, 71%, 62%)
HSVhsv(272, 62%, 89%)
CMYKcmyk(28.6%, 61.7%, 0%, 11%)
CIE-LABlab(51.89, 55.84, -59.45)
CIE-LCHlch(51.89, 81.56, 313.20°)
OKLaboklab(60.93% 0.1212 -0.1682)
OKLCHoklch(60.93% 0.207 305.8)
XYZxyz(32.1706, 20.0441, 74.8323)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A257E3 #98E357
analogous
#5C57E3 #A257E3 #E357DE
triadic
#A257E3 #E3A257 #57E3A2
tetradic
#A257E3 #E35C57 #98E357 #57DEE3
square
#A257E3 #E35C57 #98E357 #57DEE3
split-complementary
#A257E3 #DEE357 #57E35C
monochromatic
#651BA4 #8524D9 #A257E3 #BF8BEC #DCC0F4

Accessibility & contrast

On white

4.19
#A257E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#A257E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A257E3
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A257E3#FFFFFF#000000##000000
##A257E31.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E7
Deuteranopia (green-blind)
#387CE0
Tritanopia (blue-blind)
#977495
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a257e3;
/* rgb */ color: rgb(162, 87, 227);
/* oklch */ color: oklch(60.9% 0.207 305.8);
Tailwind
colors: {
  custom: {
    50: '#c28aec',
    500: '#a257e3',
    950: '#000000',
  },
}
SCSS
$custom: #a257e3;
$custom-light: #c28aec;
$custom-dark: #000000;
JSON
{
  "hex": "#a257e3",
  "rgb": {
    "r": 162,
    "g": 87,
    "b": 227
  },
  "hsl": {
    "h": 272.143,
    "s": 71.429,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60932,
    "c": 0.20732,
    "h": 305.8
  },
  "luminance": 0.20044
}

Semantic roles & 50–950 ramp

primary
#A257E3
secondary
#C9E5B1
accent
#D3126C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A257E3

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

Preview Lab → · Contrast checker → · Palette generator →

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