#A271DE#A271DE

#A271DE is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.5% C 0.163 H 302.9°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#A271DE
RGBrgb(162, 113, 222)
HSLhsl(267, 62%, 66%)
HSVhsv(267, 49%, 87%)
CMYKcmyk(27%, 49.1%, 0%, 12.9%)
CIE-LABlab(56.85, 40.90, -48.71)
CIE-LCHlch(56.85, 63.61, 310.02°)
OKLaboklab(64.49% 0.0884 -0.1368)
OKLCHoklch(64.49% 0.163 302.9)
XYZxyz(33.9873, 24.7656, 72.0828)
Luminance0.2477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271DE #ADDE71
analogous
#7176DE #A271DE #D871DE
triadic
#A271DE #DEA271 #71DEA2
tetradic
#A271DE #DE7176 #ADDE71 #71DED8
square
#A271DE #DE7176 #ADDE71 #71DED8
split-complementary
#A271DE #DED871 #76DE71
monochromatic
#6428AD #813FD2 #A271DE #C3A3EA #E3D4F5

Accessibility & contrast

On white

3.53
#A271DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#A271DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271DE
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271DE#FFFFFF#000000##000000
##A271DE1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F87E2
Deuteranopia (green-blind)
#5D88DB
Tritanopia (blue-blind)
#97859D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #a271de;
/* rgb */ color: rgb(162, 113, 222);
/* oklch */ color: oklch(64.5% 0.163 302.9);
Tailwind
colors: {
  custom: {
    50: '#c09be9',
    500: '#a271de',
    950: '#000000',
  },
}
SCSS
$custom: #a271de;
$custom-light: #c09be9;
$custom-dark: #000000;
JSON
{
  "hex": "#a271de",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 222
  },
  "hsl": {
    "h": 266.972,
    "s": 62.286,
    "l": 65.686
  },
  "oklch": {
    "l": 0.64486,
    "c": 0.16287,
    "h": 302.9
  },
  "luminance": 0.24766
}

Semantic roles & 50–950 ramp

primary
#A271DE
secondary
#D7E8C3
accent
#CA1B7C
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #A271DE

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

Preview Lab → · Contrast checker → · Palette generator →

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