#A158F0#A158F0

#A158F0 is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.8% C 0.220 H 302.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#A158F0
RGBrgb(161, 88, 240)
HSLhsl(269, 84%, 64%)
HSVhsv(269, 63%, 94%)
CMYKcmyk(32.9%, 63.3%, 0%, 5.9%)
CIE-LABlab(52.78, 58.15, -65.32)
CIE-LCHlch(52.78, 87.45, 311.68°)
OKLaboklab(61.82% 0.118 -0.1854)
OKLCHoklch(61.82% 0.22 302.5)
XYZxyz(33.9122, 20.8477, 84.6586)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A158F0 #A7F058
analogous
#585BF0 #A158F0 #ED58F0
triadic
#A158F0 #F0A158 #58F0A1
tetradic
#A158F0 #F0585B #A7F058 #58F0ED
square
#A158F0 #F0585B #A7F058 #58F0ED
split-complementary
#A158F0 #F0ED58 #5BF058
monochromatic
#6311BD #8120EB #A158F0 #C190F5 #E0C8FA

Accessibility & contrast

On white

4.06
#A158F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#A158F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A158F0
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A158F0#FFFFFF#000000##000000
##A158F01.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF5
Deuteranopia (green-blind)
#227DED
Tritanopia (blue-blind)
#91799C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a158f0;
/* rgb */ color: rgb(161, 88, 240);
/* oklch */ color: oklch(61.8% 0.220 302.5);
Tailwind
colors: {
  custom: {
    50: '#c28bf6',
    500: '#a158f0',
    950: '#000000',
  },
}
SCSS
$custom: #a158f0;
$custom-light: #c28bf6;
$custom-dark: #000000;
JSON
{
  "hex": "#a158f0",
  "rgb": {
    "r": 161,
    "g": 88,
    "b": 240
  },
  "hsl": {
    "h": 268.816,
    "s": 83.516,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61819,
    "c": 0.21982,
    "h": 302.5
  },
  "luminance": 0.20848
}

Semantic roles & 50–950 ramp

primary
#A158F0
secondary
#D3ECB8
accent
#E00677
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #A158F0

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

Preview Lab → · Contrast checker → · Palette generator →

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