#A270F8#A270F8

#A270F8 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.9% C 0.196 H 297.7°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#A270F8
RGBrgb(162, 112, 248)
HSLhsl(262, 91%, 71%)
HSVhsv(262, 55%, 97%)
CMYKcmyk(34.7%, 54.8%, 0%, 2.7%)
CIE-LABlab(58.08, 47.84, -61.24)
CIE-LCHlch(58.08, 77.71, 308.00°)
OKLaboklab(65.87% 0.0913 -0.1735)
OKLCHoklch(65.87% 0.196 297.7)
XYZxyz(37.6335, 26.0465, 91.8335)
Luminance0.2605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A270F8 #C6F870
analogous
#7082F8 #A270F8 #E670F8
triadic
#A270F8 #F8A270 #70F8A2
tetradic
#A270F8 #F87082 #C6F870 #70F8E6
square
#A270F8 #F87082 #C6F870 #70F8E6
split-complementary
#A270F8 #F8E670 #82F870
monochromatic
#5A0BE3 #7C36F5 #A270F8 #C8AAFB #ECE2FE

Accessibility & contrast

On white

3.38
#A270F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#A270F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A270F8
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A270F8#FFFFFF#000000##000000
##A270F81.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#338CFD
Deuteranopia (green-blind)
#448AF5
Tritanopia (blue-blind)
#8F8CA9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a270f8;
/* rgb */ color: rgb(162, 112, 248);
/* oklch */ color: oklch(65.9% 0.196 297.7);
Tailwind
colors: {
  custom: {
    50: '#c29afb',
    500: '#a270f8',
    950: '#000000',
  },
}
SCSS
$custom: #a270f8;
$custom-light: #c29afb;
$custom-dark: #000000;
JSON
{
  "hex": "#a270f8",
  "rgb": {
    "r": 162,
    "g": 112,
    "b": 248
  },
  "hsl": {
    "h": 262.059,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65869,
    "c": 0.19601,
    "h": 297.7
  },
  "luminance": 0.26047
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A270F8

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

Preview Lab → · Contrast checker → · Palette generator →

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