#A240BC#A240BC

#A240BC is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.6% C 0.199 H 318.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#A240BC
RGBrgb(162, 64, 188)
HSLhsl(287, 49%, 49%)
HSVhsv(287, 66%, 74%)
CMYKcmyk(13.8%, 66%, 0%, 26.3%)
CIE-LABlab(45.61, 58.23, -47.15)
CIE-LCHlch(45.61, 74.93, 321.00°)
OKLaboklab(55.63% 0.1494 -0.132)
OKLCHoklch(55.63% 0.199 318.5)
XYZxyz(25.8096, 14.9801, 49.0991)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240BC #5ABC40
analogous
#6440BC #A240BC #BC4098
triadic
#A240BC #BCA240 #40BCA2
tetradic
#A240BC #BC6440 #5ABC40 #4098BC
square
#A240BC #BC6440 #5ABC40 #4098BC
split-complementary
#A240BC #98BC40 #40BC64
monochromatic
#532161 #7B308E #A240BC #B96CCD #CF9ADD

Accessibility & contrast

On white

5.26
#A240BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#A240BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240BC
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240BC#FFFFFF#000000##FFFFFF
##A240BC1.005.264.005.26
#FFFFFF5.261.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1266C0
Deuteranopia (green-blind)
#476FB9
Tritanopia (blue-blind)
#A25679
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a240bc;
/* rgb */ color: rgb(162, 64, 188);
/* oklch */ color: oklch(55.6% 0.199 318.5);
Tailwind
colors: {
  custom: {
    50: '#c17cd1',
    500: '#a240bc',
    950: '#000000',
  },
}
SCSS
$custom: #a240bc;
$custom-light: #c17cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a240bc",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 287.419,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55634,
    "c": 0.19932,
    "h": 318.5
  },
  "luminance": 0.14979
}

Semantic roles & 50–950 ramp

primary
#A240BC
secondary
#9BC98F
accent
#D94F6C
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A240BC

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

Preview Lab → · Contrast checker → · Palette generator →

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