#A240BD#A240BD

#A240BD is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.7% C 0.200 H 318.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#A240BD
RGBrgb(162, 64, 189)
HSLhsl(287, 49%, 50%)
HSVhsv(287, 66%, 74%)
CMYKcmyk(14.3%, 66.1%, 0%, 25.9%)
CIE-LABlab(45.67, 58.43, -47.64)
CIE-LCHlch(45.67, 75.39, 320.81°)
OKLaboklab(55.69% 0.1493 -0.1334)
OKLCHoklch(55.69% 0.2 318.2)
XYZxyz(25.9177, 15.0234, 49.6688)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240BD #5BBD40
analogous
#6440BD #A240BD #BD409A
triadic
#A240BD #BDA240 #40BDA2
tetradic
#A240BD #BD6440 #5BBD40 #409ABD
square
#A240BD #BD6440 #5BBD40 #409ABD
split-complementary
#A240BD #9ABD40 #40BD64
monochromatic
#542162 #7B318F #A240BD #B96DCD #CF9ADD

Accessibility & contrast

On white

5.24
#A240BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A240BD
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240BD#FFFFFF#000000##FFFFFF
##A240BD1.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F66C1
Deuteranopia (green-blind)
#466FBA
Tritanopia (blue-blind)
#A15779
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a240bd;
/* rgb */ color: rgb(162, 64, 189);
/* oklch */ color: oklch(55.7% 0.200 318.2);
Tailwind
colors: {
  custom: {
    50: '#c17cd1',
    500: '#a240bd',
    950: '#000000',
  },
}
SCSS
$custom: #a240bd;
$custom-light: #c17cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a240bd",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 287.04,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55695,
    "c": 0.20025,
    "h": 318.2
  },
  "luminance": 0.15022
}

Semantic roles & 50–950 ramp

primary
#A240BD
secondary
#9CC990
accent
#D94F6D
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A240BD

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

Preview Lab → · Contrast checker → · Palette generator →

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