#A270FB#A270FB

#A270FB is a light, vivid violet. Relative luminance 0.262; OKLCH L 66.1% C 0.200 H 297.2°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#A270FB
RGBrgb(162, 112, 251)
HSLhsl(262, 95%, 71%)
HSVhsv(262, 55%, 98%)
CMYKcmyk(35.5%, 55.4%, 0%, 1.6%)
CIE-LABlab(58.26, 48.59, -62.61)
CIE-LCHlch(58.26, 79.26, 307.82°)
OKLaboklab(66.06% 0.0913 -0.1775)
OKLCHoklch(66.06% 0.2 297.2)
XYZxyz(38.1027, 26.2342, 94.3043)
Luminance0.2624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A270FB #C9FB70
analogous
#7083FB #A270FB #E870FB
triadic
#A270FB #FBA270 #70FBA2
tetradic
#A270FB #FB7083 #C9FB70 #70FBE8
square
#A270FB #FB7083 #C9FB70 #70FBE8
split-complementary
#A270FB #FBE870 #83FB70
monochromatic
#5807EA #7B34F9 #A270FB #C9ACFD #ECE1FE

Accessibility & contrast

On white

3.36
#A270FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#A270FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A270FB
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A270FB#FFFFFF#000000##000000
##A270FB1.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F8DFF
Deuteranopia (green-blind)
#418AF8
Tritanopia (blue-blind)
#8E8DAB
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a270fb;
/* rgb */ color: rgb(162, 112, 251);
/* oklch */ color: oklch(66.1% 0.200 297.2);
Tailwind
colors: {
  custom: {
    50: '#c29bfd',
    500: '#a270fb',
    950: '#000000',
  },
}
SCSS
$custom: #a270fb;
$custom-light: #c29bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#a270fb",
  "rgb": {
    "r": 162,
    "g": 112,
    "b": 251
  },
  "hsl": {
    "h": 261.583,
    "s": 94.558,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66056,
    "c": 0.1996,
    "h": 297.2
  },
  "luminance": 0.26235
}

Semantic roles & 50–950 ramp

primary
#A270FB
secondary
#E9F6D1
accent
#E60093
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86

Preview Lab

Preview with #A270FB

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

Preview Lab → · Contrast checker → · Palette generator →

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