#A270F5#A270F5

#A270F5 is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.7% C 0.192 H 298.3°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#A270F5
RGBrgb(162, 112, 245)
HSLhsl(263, 87%, 70%)
HSVhsv(263, 54%, 96%)
CMYKcmyk(33.9%, 54.3%, 0%, 3.9%)
CIE-LABlab(57.91, 47.09, -59.86)
CIE-LCHlch(57.91, 76.16, 308.19°)
OKLaboklab(65.68% 0.0912 -0.1694)
OKLCHoklch(65.68% 0.192 298.3)
XYZxyz(37.1718, 25.8619, 89.4019)
Luminance0.2586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A270F5 #C3F570
analogous
#7081F5 #A270F5 #E470F5
triadic
#A270F5 #F5A270 #70F5A2
tetradic
#A270F5 #F57081 #C3F570 #70F5E4
square
#A270F5 #F57081 #C3F570 #70F5E4
split-complementary
#A270F5 #F5E470 #81F570
monochromatic
#5C0FDB #7D37F1 #A270F5 #C7A9F9 #ECE2FD

Accessibility & contrast

On white

3.40
#A270F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#A270F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A270F5
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A270F5#FFFFFF#000000##000000
##A270F51.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#378BF9
Deuteranopia (green-blind)
#488AF2
Tritanopia (blue-blind)
#908BA8
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a270f5;
/* rgb */ color: rgb(162, 112, 245);
/* oklch */ color: oklch(65.7% 0.192 298.3);
Tailwind
colors: {
  custom: {
    50: '#c29af9',
    500: '#a270f5',
    950: '#000000',
  },
}
SCSS
$custom: #a270f5;
$custom-light: #c29af9;
$custom-dark: #000000;
JSON
{
  "hex": "#a270f5",
  "rgb": {
    "r": 162,
    "g": 112,
    "b": 245
  },
  "hsl": {
    "h": 262.556,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.65683,
    "c": 0.19239,
    "h": 298.3
  },
  "luminance": 0.25862
}

Semantic roles & 50–950 ramp

primary
#A270F5
secondary
#E5F3CE
accent
#E3028F
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A270F5

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

Preview Lab → · Contrast checker → · Palette generator →

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