#A270DC#A270DC

#A270DC is a light, vivid violet. Relative luminance 0.244; OKLCH L 64.2% C 0.162 H 303.5°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#A270DC
RGBrgb(162, 112, 220)
HSLhsl(268, 61%, 65%)
HSVhsv(268, 49%, 86%)
CMYKcmyk(26.4%, 49.1%, 0%, 13.7%)
CIE-LABlab(56.52, 40.98, -48.10)
CIE-LCHlch(56.52, 63.19, 310.43°)
OKLaboklab(64.21% 0.0895 -0.135)
OKLCHoklch(64.21% 0.162 303.5)
XYZxyz(33.6099, 24.4371, 70.6425)
Luminance0.2444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A270DC #AADC70
analogous
#7074DC #A270DC #D870DC
triadic
#A270DC #DCA270 #70DCA2
tetradic
#A270DC #DC7074 #AADC70 #70DCD8
square
#A270DC #DC7074 #AADC70 #70DCD8
split-complementary
#A270DC #DCD870 #74DC70
monochromatic
#6429A8 #823FD0 #A270DC #C2A1E8 #E2D2F4

Accessibility & contrast

On white

3.57
#A270DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#A270DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A270DC
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A270DC#FFFFFF#000000##000000
##A270DC1.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F86E0
Deuteranopia (green-blind)
#5D87D9
Tritanopia (blue-blind)
#98839C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #a270dc;
/* rgb */ color: rgb(162, 112, 220);
/* oklch */ color: oklch(64.2% 0.162 303.5);
Tailwind
colors: {
  custom: {
    50: '#c09ae7',
    500: '#a270dc',
    950: '#000000',
  },
}
SCSS
$custom: #a270dc;
$custom-light: #c09ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#a270dc",
  "rgb": {
    "r": 162,
    "g": 112,
    "b": 220
  },
  "hsl": {
    "h": 267.778,
    "s": 60.674,
    "l": 65.098
  },
  "oklch": {
    "l": 0.64211,
    "c": 0.16199,
    "h": 303.5
  },
  "luminance": 0.24437
}

Semantic roles & 50–950 ramp

primary
#A270DC
secondary
#D5E6C2
accent
#C81D79
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #A270DC

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

Preview Lab → · Contrast checker → · Palette generator →

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