#A240B3#A240B3

#A240B3 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.1% C 0.191 H 321.5°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#A240B3
RGBrgb(162, 64, 179)
HSLhsl(291, 47%, 48%)
HSVhsv(291, 64%, 70%)
CMYKcmyk(9.5%, 64.2%, 0%, 29.8%)
CIE-LABlab(45.09, 56.49, -42.71)
CIE-LCHlch(45.09, 70.82, 322.91°)
OKLaboklab(55.09% 0.1494 -0.119)
OKLCHoklch(55.09% 0.191 321.5)
XYZxyz(24.8695, 14.6041, 44.1480)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240B3 #51B340
analogous
#6840B3 #A240B3 #B3408B
triadic
#A240B3 #B3A240 #40B3A2
tetradic
#A240B3 #B36840 #51B340 #408BB3
square
#A240B3 #B36840 #51B340 #408BB3
split-complementary
#A240B3 #8BB340 #40B368
monochromatic
#502059 #793086 #A240B3 #BA67C9 #CF94D9

Accessibility & contrast

On white

5.36
#A240B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#A240B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240B3
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240B3#FFFFFF#000000##FFFFFF
##A240B31.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2364B6
Deuteranopia (green-blind)
#4D6EB0
Tritanopia (blue-blind)
#A45374
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a240b3;
/* rgb */ color: rgb(162, 64, 179);
/* oklch */ color: oklch(55.1% 0.191 321.5);
Tailwind
colors: {
  custom: {
    50: '#c17cca',
    500: '#a240b3',
    950: '#000000',
  },
}
SCSS
$custom: #a240b3;
$custom-light: #c17cca;
$custom-dark: #000000;
JSON
{
  "hex": "#a240b3",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 291.13,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55091,
    "c": 0.19103,
    "h": 321.5
  },
  "luminance": 0.14603
}

Semantic roles & 50–950 ramp

primary
#A240B3
secondary
#93C48A
accent
#D75165
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A240B3

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

Preview Lab → · Contrast checker → · Palette generator →

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