#A240B7#A240B7

#A240B7 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.3% C 0.195 H 320.1°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#A240B7
RGBrgb(162, 64, 183)
HSLhsl(289, 48%, 48%)
HSVhsv(289, 65%, 72%)
CMYKcmyk(11.5%, 65%, 0%, 28.2%)
CIE-LABlab(45.32, 57.26, -44.69)
CIE-LCHlch(45.32, 72.64, 322.03°)
OKLaboklab(55.33% 0.1494 -0.1248)
OKLCHoklch(55.33% 0.195 320.1)
XYZxyz(25.2799, 14.7683, 46.3095)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240B7 #55B740
analogous
#6640B7 #A240B7 #B74090
triadic
#A240B7 #B7A240 #40B7A2
tetradic
#A240B7 #B76640 #55B740 #4090B7
square
#A240B7 #B76640 #55B740 #4090B7
split-complementary
#A240B7 #90B740 #40B766
monochromatic
#52205C #7A308A #A240B7 #BA69CB #CF97DB

Accessibility & contrast

On white

5.31
#A240B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#A240B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240B7
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240B7#FFFFFF#000000##FFFFFF
##A240B71.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D64BB
Deuteranopia (green-blind)
#4A6FB4
Tritanopia (blue-blind)
#A35476
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a240b7;
/* rgb */ color: rgb(162, 64, 183);
/* oklch */ color: oklch(55.3% 0.195 320.1);
Tailwind
colors: {
  custom: {
    50: '#c17ccd',
    500: '#a240b7',
    950: '#000000',
  },
}
SCSS
$custom: #a240b7;
$custom-light: #c17ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#a240b7",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 289.412,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.55329,
    "c": 0.1947,
    "h": 320.1
  },
  "luminance": 0.14767
}

Semantic roles & 50–950 ramp

primary
#A240B7
secondary
#97C68D
accent
#D85068
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #A240B7

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

Preview Lab → · Contrast checker → · Palette generator →

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