#A258EC#A258EC

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

Color values

HEX#A258EC
RGBrgb(162, 88, 236)
HSLhsl(270, 80%, 64%)
HSVhsv(270, 63%, 93%)
CMYKcmyk(31.4%, 62.7%, 0%, 7.5%)
CIE-LABlab(52.64, 57.43, -63.30)
CIE-LCHlch(52.64, 85.47, 312.21°)
OKLaboklab(61.66% 0.1196 -0.1795)
OKLCHoklch(61.66% 0.216 303.7)
XYZxyz(33.5269, 20.7170, 81.5731)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A258EC #A2EC58
analogous
#5858EC #A258EC #EC58EC
triadic
#A258EC #ECA258 #58ECA2
tetradic
#A258EC #EC5858 #A2EC58 #58ECEC
square
#A258EC #EC5858 #A2EC58 #58ECEC
split-complementary
#A258EC #ECEC58 #58EC58
monochromatic
#6515B5 #8321E6 #A258EC #C18FF2 #DFC6F9

Accessibility & contrast

On white

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

On black

5.14
#A258EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A258EC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A258EC#FFFFFF#000000##000000
##A258EC1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#2C7DE9
Tritanopia (blue-blind)
#94789A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a258ec;
/* rgb */ color: rgb(162, 88, 236);
/* oklch */ color: oklch(61.7% 0.216 303.7);
Tailwind
colors: {
  custom: {
    50: '#c28bf3',
    500: '#a258ec',
    950: '#000000',
  },
}
SCSS
$custom: #a258ec;
$custom-light: #c28bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#a258ec",
  "rgb": {
    "r": 162,
    "g": 88,
    "b": 236
  },
  "hsl": {
    "h": 270,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61658,
    "c": 0.2157,
    "h": 303.7
  },
  "luminance": 0.20717
}

Semantic roles & 50–950 ramp

primary
#A258EC
secondary
#D0EAB6
accent
#DC0A73
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A258EC

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

Preview Lab → · Contrast checker → · Palette generator →

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