#A245B2#A245B2

#A245B2 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.6% C 0.183 H 321.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#A245B2
RGBrgb(162, 69, 178)
HSLhsl(291, 44%, 48%)
HSVhsv(291, 61%, 70%)
CMYKcmyk(9%, 61.2%, 0%, 30.2%)
CIE-LABlab(45.84, 54.06, -40.92)
CIE-LCHlch(45.84, 67.80, 322.88°)
OKLaboklab(55.62% 0.1433 -0.1139)
OKLCHoklch(55.62% 0.183 321.5)
XYZxyz(25.0634, 15.1532, 43.7155)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A245B2 #55B245
analogous
#6B45B2 #A245B2 #B2458B
triadic
#A245B2 #B2A245 #45B2A2
tetradic
#A245B2 #B26B45 #55B245 #458BB2
square
#A245B2 #B26B45 #55B245 #458BB2
split-complementary
#A245B2 #8BB245 #45B26B
monochromatic
#52235A #7A3486 #A245B2 #BA6EC7 #CF9AD8

Accessibility & contrast

On white

5.21
#A245B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A245B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A245B2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A245B2#FFFFFF#000000##FFFFFF
##A245B21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#5170AF
Tritanopia (blue-blind)
#A45675
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a245b2;
/* rgb */ color: rgb(162, 69, 178);
/* oklch */ color: oklch(55.6% 0.183 321.5);
Tailwind
colors: {
  custom: {
    50: '#c07ec9',
    500: '#a245b2',
    950: '#000000',
  },
}
SCSS
$custom: #a245b2;
$custom-light: #c07ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#a245b2",
  "rgb": {
    "r": 162,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 291.193,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.55621,
    "c": 0.18305,
    "h": 321.5
  },
  "luminance": 0.15152
}

Semantic roles & 50–950 ramp

primary
#A245B2
secondary
#97C48F
accent
#D45467
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A245B2

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

Preview Lab → · Contrast checker → · Palette generator →

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