#A270F7#A270F7

#A270F7 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.8% C 0.195 H 297.9°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#A270F7
RGBrgb(162, 112, 247)
HSLhsl(262, 89%, 70%)
HSVhsv(262, 55%, 97%)
CMYKcmyk(34.4%, 54.7%, 0%, 3.1%)
CIE-LABlab(58.02, 47.59, -60.78)
CIE-LCHlch(58.02, 77.19, 308.06°)
OKLaboklab(65.81% 0.0912 -0.1721)
OKLCHoklch(65.81% 0.195 297.9)
XYZxyz(37.4788, 25.9847, 91.0186)
Luminance0.2599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A270F7 #C5F770
analogous
#7081F7 #A270F7 #E570F7
triadic
#A270F7 #F7A270 #70F7A2
tetradic
#A270F7 #F77081 #C5F770 #70F7E5
square
#A270F7 #F77081 #C5F770 #70F7E5
split-complementary
#A270F7 #F7E570 #81F770
monochromatic
#5B0DE0 #7C36F4 #A270F7 #C8AAFA #ECE2FD

Accessibility & contrast

On white

3.39
#A270F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#A270F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A270F7
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A270F7#FFFFFF#000000##000000
##A270F71.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#358CFC
Deuteranopia (green-blind)
#458AF4
Tritanopia (blue-blind)
#8F8BA9
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a270f7;
/* rgb */ color: rgb(162, 112, 247);
/* oklch */ color: oklch(65.8% 0.195 297.9);
Tailwind
colors: {
  custom: {
    50: '#c29afa',
    500: '#a270f7',
    950: '#000000',
  },
}
SCSS
$custom: #a270f7;
$custom-light: #c29afa;
$custom-dark: #000000;
JSON
{
  "hex": "#a270f7",
  "rgb": {
    "r": 162,
    "g": 112,
    "b": 247
  },
  "hsl": {
    "h": 262.222,
    "s": 89.404,
    "l": 70.392
  },
  "oklch": {
    "l": 0.65806,
    "c": 0.1948,
    "h": 297.9
  },
  "luminance": 0.25985
}

Semantic roles & 50–950 ramp

primary
#A270F7
secondary
#E6F4CF
accent
#E60091
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A270F7

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

Preview Lab → · Contrast checker → · Palette generator →

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