#A240B9#A240B9

#A240B9 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.5% C 0.197 H 319.5°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#A240B9
RGBrgb(162, 64, 185)
HSLhsl(289, 49%, 49%)
HSVhsv(289, 65%, 73%)
CMYKcmyk(12.4%, 65.4%, 0%, 27.5%)
CIE-LABlab(45.43, 57.65, -45.68)
CIE-LCHlch(45.43, 73.55, 321.61°)
OKLaboklab(55.45% 0.1494 -0.1277)
OKLCHoklch(55.45% 0.197 319.5)
XYZxyz(25.4895, 14.8521, 47.4136)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240B9 #57B940
analogous
#6640B9 #A240B9 #B94094
triadic
#A240B9 #B9A240 #40B9A2
tetradic
#A240B9 #B96640 #57B940 #4094B9
square
#A240B9 #B96640 #57B940 #4094B9
split-complementary
#A240B9 #94B940 #40B966
monochromatic
#52215E #7A308C #A240B9 #B96BCC #CF98DB

Accessibility & contrast

On white

5.29
#A240B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#A240B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240B9
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240B9#FFFFFF#000000##FFFFFF
##A240B91.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1965BD
Deuteranopia (green-blind)
#496FB6
Tritanopia (blue-blind)
#A25577
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a240b9;
/* rgb */ color: rgb(162, 64, 185);
/* oklch */ color: oklch(55.5% 0.197 319.5);
Tailwind
colors: {
  custom: {
    50: '#c17cce',
    500: '#a240b9',
    950: '#000000',
  },
}
SCSS
$custom: #a240b9;
$custom-light: #c17cce;
$custom-dark: #000000;
JSON
{
  "hex": "#a240b9",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 288.595,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5545,
    "c": 0.19655,
    "h": 319.5
  },
  "luminance": 0.14851
}

Semantic roles & 50–950 ramp

primary
#A240B9
secondary
#99C78E
accent
#D8506A
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A240B9

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

Preview Lab → · Contrast checker → · Palette generator →

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