#A152CB#A152CB

#A152CB is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.6% C 0.189 H 312.1°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#A152CB
RGBrgb(161, 82, 203)
HSLhsl(279, 54%, 56%)
HSVhsv(279, 60%, 80%)
CMYKcmyk(20.7%, 59.6%, 0%, 20.4%)
CIE-LABlab(49.40, 52.72, -49.78)
CIE-LCHlch(49.40, 72.50, 316.64°)
OKLaboklab(58.64% 0.1264 -0.1398)
OKLCHoklch(58.64% 0.189 312.1)
XYZxyz(28.4928, 17.9242, 58.4471)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A152CB #7CCB52
analogous
#6452CB #A152CB #CB52B8
triadic
#A152CB #CBA152 #52CBA1
tetradic
#A152CB #CB6452 #7CCB52 #52B8CB
square
#A152CB #CB6452 #7CCB52 #52B8CB
split-complementary
#A152CB #B8CB52 #52CB64
monochromatic
#5F267D #8234AC #A152CB #BB81D9 #D4B0E7

Accessibility & contrast

On white

4.58
#A152CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#A152CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A152CB
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A152CB#FFFFFF#000000##000000
##A152CB1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2771CF
Deuteranopia (green-blind)
#4977C8
Tritanopia (blue-blind)
#9C6887
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a152cb;
/* rgb */ color: rgb(161, 82, 203);
/* oklch */ color: oklch(58.6% 0.189 312.1);
Tailwind
colors: {
  custom: {
    50: '#c087db',
    500: '#a152cb',
    950: '#000000',
  },
}
SCSS
$custom: #a152cb;
$custom-light: #c087db;
$custom-dark: #000000;
JSON
{
  "hex": "#a152cb",
  "rgb": {
    "r": 161,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 279.174,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58638,
    "c": 0.18851,
    "h": 312.1
  },
  "luminance": 0.17923
}

Semantic roles & 50–950 ramp

primary
#A152CB
secondary
#B5D5A3
accent
#DD4B7D
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #A152CB

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

Preview Lab → · Contrast checker → · Palette generator →

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