#A240BB#A240BB

#A240BB is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.6% C 0.198 H 318.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#A240BB
RGBrgb(162, 64, 187)
HSLhsl(288, 49%, 49%)
HSVhsv(288, 66%, 73%)
CMYKcmyk(13.4%, 65.8%, 0%, 26.7%)
CIE-LABlab(45.55, 58.04, -46.66)
CIE-LCHlch(45.55, 74.47, 321.20°)
OKLaboklab(55.57% 0.1494 -0.1306)
OKLCHoklch(55.57% 0.198 318.8)
XYZxyz(25.7021, 14.9372, 48.5334)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240BB #59BB40
analogous
#6540BB #A240BB #BB4097
triadic
#A240BB #BBA240 #40BBA2
tetradic
#A240BB #BB6540 #59BB40 #4097BB
square
#A240BB #BB6540 #59BB40 #4097BB
split-complementary
#A240BB #97BB40 #40BB65
monochromatic
#532160 #7B308D #A240BB #B96CCD #CF99DC

Accessibility & contrast

On white

5.27
#A240BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#A240BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240BB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240BB#FFFFFF#000000##FFFFFF
##A240BB1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1465BF
Deuteranopia (green-blind)
#476FB8
Tritanopia (blue-blind)
#A25678
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a240bb;
/* rgb */ color: rgb(162, 64, 187);
/* oklch */ color: oklch(55.6% 0.198 318.8);
Tailwind
colors: {
  custom: {
    50: '#c17cd0',
    500: '#a240bb',
    950: '#000000',
  },
}
SCSS
$custom: #a240bb;
$custom-light: #c17cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#a240bb",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 287.805,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55572,
    "c": 0.19839,
    "h": 318.8
  },
  "luminance": 0.14936
}

Semantic roles & 50–950 ramp

primary
#A240BB
secondary
#9AC88F
accent
#D94F6B
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A240BB

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

Preview Lab → · Contrast checker → · Palette generator →

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