#A462B2#A462B2

#A462B2 is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.0% C 0.137 H 320.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#A462B2
RGBrgb(164, 98, 178)
HSLhsl(290, 34%, 54%)
HSVhsv(290, 45%, 70%)
CMYKcmyk(7.9%, 44.9%, 0%, 30.2%)
CIE-LABlab(51.66, 39.91, -31.75)
CIE-LCHlch(51.66, 51.00, 321.50°)
OKLaboklab(59.96% 0.1059 -0.0875)
OKLCHoklch(59.96% 0.137 320.4)
XYZxyz(27.7124, 19.8432, 44.4812)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A462B2 #70B262
analogous
#7C62B2 #A462B2 #B26298
triadic
#A462B2 #B2A462 #62B2A4
tetradic
#A462B2 #B27C62 #70B262 #6298B2
square
#A462B2 #B27C62 #70B262 #6298B2
split-complementary
#A462B2 #98B262 #62B27C
monochromatic
#5E3367 #834790 #A462B2 #BC8BC6 #D4B4DA

Accessibility & contrast

On white

4.23
#A462B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#A462B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A462B2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A462B2#FFFFFF#000000##000000
##A462B21.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5676B5
Deuteranopia (green-blind)
#697EB0
Tritanopia (blue-blind)
#A56C82
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a462b2;
/* rgb */ color: rgb(164, 98, 178);
/* oklch */ color: oklch(60.0% 0.137 320.4);
Tailwind
colors: {
  custom: {
    50: '#c090c9',
    500: '#a462b2',
    950: '#000000',
  },
}
SCSS
$custom: #a462b2;
$custom-light: #c090c9;
$custom-dark: #000000;
JSON
{
  "hex": "#a462b2",
  "rgb": {
    "r": 164,
    "g": 98,
    "b": 178
  },
  "hsl": {
    "h": 289.5,
    "s": 34.188,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59962,
    "c": 0.13733,
    "h": 320.4
  },
  "luminance": 0.19842
}

Semantic roles & 50–950 ramp

primary
#A462B2
secondary
#ADC9A7
accent
#CA5E71
background
#FCF9FC
surface
#F8F1F8
border
#D1CBD1
text
#120D13
muted
#817E82

Preview Lab

Preview with #A462B2

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

Preview Lab → · Contrast checker → · Palette generator →

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