#A258EB#A258EB

#A258EB is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.6% C 0.215 H 303.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#A258EB
RGBrgb(162, 88, 235)
HSLhsl(270, 79%, 63%)
HSVhsv(270, 63%, 92%)
CMYKcmyk(31.1%, 62.6%, 0%, 7.8%)
CIE-LABlab(52.57, 57.19, -62.85)
CIE-LCHlch(52.57, 84.97, 312.30°)
OKLaboklab(61.59% 0.1197 -0.1781)
OKLCHoklch(61.59% 0.215 303.9)
XYZxyz(33.3820, 20.6591, 80.8101)
Luminance0.2066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A258EB #A1EB58
analogous
#5858EB #A258EB #EB58EB
triadic
#A258EB #EBA258 #58EBA2
tetradic
#A258EB #EB5858 #A1EB58 #58EBEB
square
#A258EB #EB5858 #A1EB58 #58EBEB
split-complementary
#A258EB #EBEB58 #58EB58
monochromatic
#6515B3 #8421E4 #A258EB #C08FF2 #DFC5F8

Accessibility & contrast

On white

4.09
#A258EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#A258EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A258EB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A258EB#FFFFFF#000000##000000
##A258EB1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#2E7DE8
Tritanopia (blue-blind)
#94779A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a258eb;
/* rgb */ color: rgb(162, 88, 235);
/* oklch */ color: oklch(61.6% 0.215 303.9);
Tailwind
colors: {
  custom: {
    50: '#c28bf2',
    500: '#a258eb',
    950: '#000000',
  },
}
SCSS
$custom: #a258eb;
$custom-light: #c28bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#a258eb",
  "rgb": {
    "r": 162,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 270.204,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61591,
    "c": 0.21462,
    "h": 303.9
  },
  "luminance": 0.20659
}

Semantic roles & 50–950 ramp

primary
#A258EB
secondary
#CFEAB5
accent
#DB0B72
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A258EB

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

Preview Lab → · Contrast checker → · Palette generator →

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