#A231B2#A231B2

#A231B2 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.5% C 0.209 H 322.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#A231B2
RGBrgb(162, 49, 178)
HSLhsl(293, 57%, 45%)
HSVhsv(293, 72%, 70%)
CMYKcmyk(9%, 72.5%, 0%, 30.2%)
CIE-LABlab(42.90, 62.28, -45.60)
CIE-LCHlch(42.90, 77.19, 323.79°)
OKLaboklab(53.51% 0.1656 -0.1274)
OKLCHoklch(53.51% 0.209 322.4)
XYZxyz(24.0337, 13.0937, 43.3723)
Luminance0.1309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A231B2 #41B231
analogous
#6231B2 #A231B2 #B23182
triadic
#A231B2 #B2A231 #31B2A2
tetradic
#A231B2 #B26231 #41B231 #3182B2
square
#A231B2 #B26231 #41B231 #3182B2
split-complementary
#A231B2 #82B231 #31B262
monochromatic
#4B1752 #762482 #A231B2 #BF51CF #D181DC

Accessibility & contrast

On white

5.80
#A231B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#A231B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A231B2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A231B2#FFFFFF#000000##FFFFFF
##A231B21.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#446AAF
Tritanopia (blue-blind)
#A4496F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a231b2;
/* rgb */ color: rgb(162, 49, 178);
/* oklch */ color: oklch(53.5% 0.209 322.4);
Tailwind
colors: {
  custom: {
    50: '#c174ca',
    500: '#a231b2',
    950: '#000000',
  },
}
SCSS
$custom: #a231b2;
$custom-light: #c174ca;
$custom-dark: #000000;
JSON
{
  "hex": "#a231b2",
  "rgb": {
    "r": 162,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 292.558,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53505,
    "c": 0.2089,
    "h": 322.4
  },
  "luminance": 0.13092
}

Semantic roles & 50–950 ramp

primary
#A231B2
secondary
#83C579
accent
#E0485B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A231B2

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

Preview Lab → · Contrast checker → · Palette generator →

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