#A278F3#A278F3

#A278F3 is a light, vivid violet. Relative luminance 0.276; OKLCH L 66.8% C 0.178 H 297.1°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#A278F3
RGBrgb(162, 120, 243)
HSLhsl(260, 84%, 71%)
HSVhsv(260, 51%, 95%)
CMYKcmyk(33.3%, 50.6%, 0%, 4.7%)
CIE-LABlab(59.51, 42.18, -56.18)
CIE-LCHlch(59.51, 70.25, 306.90°)
OKLaboklab(66.84% 0.0811 -0.1587)
OKLCHoklch(66.84% 0.178 297.1)
XYZxyz(37.7904, 27.5849, 88.1101)
Luminance0.2758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A278F3 #C9F378
analogous
#788BF3 #A278F3 #DF78F3
triadic
#A278F3 #F3A278 #78F3A2
tetradic
#A278F3 #F3788B #C9F378 #78F3DF
square
#A278F3 #F3788B #C9F378 #78F3DF
split-complementary
#A278F3 #F3DF78 #8BF378
monochromatic
#5814DD #7B40EE #A278F3 #C9B0F8 #ECE3FD

Accessibility & contrast

On white

3.22
#A278F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#A278F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A278F3
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A278F3#FFFFFF#000000##000000
##A278F31.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A90F7
Deuteranopia (green-blind)
#558EF0
Tritanopia (blue-blind)
#9090AA
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #a278f3;
/* rgb */ color: rgb(162, 120, 243);
/* oklch */ color: oklch(66.8% 0.178 297.1);
Tailwind
colors: {
  custom: {
    50: '#c1a0f8',
    500: '#a278f3',
    950: '#000000',
  },
}
SCSS
$custom: #a278f3;
$custom-light: #c1a0f8;
$custom-dark: #000000;
JSON
{
  "hex": "#a278f3",
  "rgb": {
    "r": 162,
    "g": 120,
    "b": 243
  },
  "hsl": {
    "h": 260.488,
    "s": 83.673,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66836,
    "c": 0.17819,
    "h": 297.1
  },
  "luminance": 0.27585
}

Semantic roles & 50–950 ramp

primary
#A278F3
secondary
#E9F4D3
accent
#E00595
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F17
muted
#827E85

Preview Lab

Preview with #A278F3

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

Preview Lab → · Contrast checker → · Palette generator →

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