#A240BF#A240BF

#A240BF is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.8% C 0.202 H 317.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#A240BF
RGBrgb(162, 64, 191)
HSLhsl(286, 50%, 50%)
HSVhsv(286, 66%, 75%)
CMYKcmyk(15.2%, 66.5%, 0%, 25.1%)
CIE-LABlab(45.79, 58.82, -48.61)
CIE-LCHlch(45.79, 76.31, 320.43°)
OKLaboklab(55.82% 0.1493 -0.1363)
OKLCHoklch(55.82% 0.202 317.6)
XYZxyz(26.1363, 15.1108, 50.8201)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240BF #5DBF40
analogous
#6240BF #A240BF #BF409D
triadic
#A240BF #BFA240 #40BFA2
tetradic
#A240BF #BF6240 #5DBF40 #409DBF
square
#A240BF #BF6240 #5DBF40 #409DBF
split-complementary
#A240BF #9DBF40 #40BF62
monochromatic
#542163 #7B3191 #A240BF #B86ECE #CF9CDE

Accessibility & contrast

On white

5.22
#A240BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#A240BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240BF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240BF#FFFFFF#000000##FFFFFF
##A240BF1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0766C3
Deuteranopia (green-blind)
#446FBC
Tritanopia (blue-blind)
#A1577A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a240bf;
/* rgb */ color: rgb(162, 64, 191);
/* oklch */ color: oklch(55.8% 0.202 317.6);
Tailwind
colors: {
  custom: {
    50: '#c17cd3',
    500: '#a240bf',
    950: '#000000',
  },
}
SCSS
$custom: #a240bf;
$custom-light: #c17cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#a240bf",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 286.299,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.5582,
    "c": 0.20212,
    "h": 317.6
  },
  "luminance": 0.1511
}

Semantic roles & 50–950 ramp

primary
#A240BF
secondary
#9ECA91
accent
#D94E6E
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A240BF

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

Preview Lab → · Contrast checker → · Palette generator →

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