#A242BF#A242BF

#A242BF is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.199 H 317.5°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#A242BF
RGBrgb(162, 66, 191)
HSLhsl(286, 49%, 50%)
HSVhsv(286, 65%, 75%)
CMYKcmyk(15.2%, 65.4%, 0%, 25.1%)
CIE-LABlab(46.10, 57.96, -48.11)
CIE-LCHlch(46.10, 75.33, 320.30°)
OKLaboklab(56.04% 0.147 -0.1348)
OKLCHoklch(56.04% 0.199 317.5)
XYZxyz(26.2511, 15.3405, 50.8583)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242BF #5FBF42
analogous
#6342BF #A242BF #BF429D
triadic
#A242BF #BFA242 #42BFA2
tetradic
#A242BF #BF6342 #5FBF42 #429DBF
square
#A242BF #BF6342 #5FBF42 #429DBF
split-complementary
#A242BF #9DBF42 #42BF63
monochromatic
#552265 #7C3292 #A242BF #B870CE #CF9DDE

Accessibility & contrast

On white

5.16
#A242BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#A242BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242BF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242BF#FFFFFF#000000##FFFFFF
##A242BF1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1167C3
Deuteranopia (green-blind)
#4670BC
Tritanopia (blue-blind)
#A1597B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a242bf;
/* rgb */ color: rgb(162, 66, 191);
/* oklch */ color: oklch(56.0% 0.199 317.5);
Tailwind
colors: {
  custom: {
    50: '#c17dd3',
    500: '#a242bf',
    950: '#000000',
  },
}
SCSS
$custom: #a242bf;
$custom-light: #c17dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#a242bf",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 286.08,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56044,
    "c": 0.19947,
    "h": 317.5
  },
  "luminance": 0.15339
}

Semantic roles & 50–950 ramp

primary
#A242BF
secondary
#9FCA93
accent
#D94F6F
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A242BF

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

Preview Lab → · Contrast checker → · Palette generator →

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