#A270F0#A270F0

#A270F0 is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.4% C 0.186 H 299.2°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#A270F0
RGBrgb(162, 112, 240)
HSLhsl(263, 81%, 69%)
HSVhsv(263, 53%, 94%)
CMYKcmyk(32.5%, 53.3%, 0%, 5.9%)
CIE-LABlab(57.62, 45.84, -57.54)
CIE-LCHlch(57.62, 73.57, 308.54°)
OKLaboklab(65.38% 0.091 -0.1626)
OKLCHoklch(65.38% 0.186 299.2)
XYZxyz(36.4188, 25.5607, 85.4362)
Luminance0.2556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A270F0 #BEF070
analogous
#707EF0 #A270F0 #E270F0
triadic
#A270F0 #F0A270 #70F0A2
tetradic
#A270F0 #F0707E #BEF070 #70F0E2
square
#A270F0 #F0707E #BEF070 #70F0E2
split-complementary
#A270F0 #F0E270 #7EF070
monochromatic
#5E16D0 #7E39EA #A270F0 #C6A7F6 #EADFFC

Accessibility & contrast

On white

3.44
#A270F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#A270F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A270F0
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A270F0#FFFFFF#000000##000000
##A270F01.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8AF4
Deuteranopia (green-blind)
#4D89ED
Tritanopia (blue-blind)
#9289A5
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a270f0;
/* rgb */ color: rgb(162, 112, 240);
/* oklch */ color: oklch(65.4% 0.186 299.2);
Tailwind
colors: {
  custom: {
    50: '#c19af5',
    500: '#a270f0',
    950: '#000000',
  },
}
SCSS
$custom: #a270f0;
$custom-light: #c19af5;
$custom-dark: #000000;
JSON
{
  "hex": "#a270f0",
  "rgb": {
    "r": 162,
    "g": 112,
    "b": 240
  },
  "hsl": {
    "h": 263.438,
    "s": 81.013,
    "l": 69.02
  },
  "oklch": {
    "l": 0.65377,
    "c": 0.18635,
    "h": 299.2
  },
  "luminance": 0.25561
}

Semantic roles & 50–950 ramp

primary
#A270F0
secondary
#E2F1CB
accent
#DD088A
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130E17
muted
#827E85

Preview Lab

Preview with #A270F0

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

Preview Lab → · Contrast checker → · Palette generator →

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