#A257F2#A257F2

#A257F2 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.9% C 0.223 H 302.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A257F2
RGBrgb(162, 87, 242)
HSLhsl(269, 86%, 65%)
HSVhsv(269, 64%, 95%)
CMYKcmyk(33.1%, 64%, 0%, 5.1%)
CIE-LABlab(52.85, 59.32, -66.32)
CIE-LCHlch(52.85, 88.98, 311.81°)
OKLaboklab(61.93% 0.1203 -0.1884)
OKLCHoklch(61.93% 0.223 302.6)
XYZxyz(34.3318, 20.9085, 86.2142)
Luminance0.2091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A257F2 #A7F257
analogous
#575AF2 #A257F2 #EF57F2
triadic
#A257F2 #F2A257 #57F2A2
tetradic
#A257F2 #F2575A #A7F257 #57F2EF
square
#A257F2 #F2575A #A7F257 #57F2EF
split-complementary
#A257F2 #F2EF57 #5AF257
monochromatic
#640FC0 #831EEE #A257F2 #C190F6 #E1C9FB

Accessibility & contrast

On white

4.05
#A257F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#A257F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A257F2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A257F2#FFFFFF#000000##000000
##A257F21.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF7
Deuteranopia (green-blind)
#1D7EEF
Tritanopia (blue-blind)
#92799D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a257f2;
/* rgb */ color: rgb(162, 87, 242);
/* oklch */ color: oklch(61.9% 0.223 302.6);
Tailwind
colors: {
  custom: {
    50: '#c38bf7',
    500: '#a257f2',
    950: '#000000',
  },
}
SCSS
$custom: #a257f2;
$custom-light: #c38bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#a257f2",
  "rgb": {
    "r": 162,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 269.032,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61934,
    "c": 0.22348,
    "h": 302.6
  },
  "luminance": 0.20909
}

Semantic roles & 50–950 ramp

primary
#A257F2
secondary
#D3EDB8
accent
#E20376
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #A257F2

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

Preview Lab → · Contrast checker → · Palette generator →

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