#A278EF#A278EF

#A278EF is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.6% C 0.173 H 297.8°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#A278EF
RGBrgb(162, 120, 239)
HSLhsl(261, 79%, 70%)
HSVhsv(261, 50%, 94%)
CMYKcmyk(32.2%, 49.8%, 0%, 6.3%)
CIE-LABlab(59.29, 41.18, -54.31)
CIE-LCHlch(59.29, 68.16, 307.17°)
OKLaboklab(66.6% 0.0808 -0.1532)
OKLCHoklch(66.6% 0.173 297.8)
XYZxyz(37.1929, 27.3459, 84.9634)
Luminance0.2735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A278EF #C5EF78
analogous
#788AEF #A278EF #DD78EF
triadic
#A278EF #EFA278 #78EFA2
tetradic
#A278EF #EF788A #C5EF78 #78EFDD
square
#A278EF #EF788A #C5EF78 #78EFDD
split-complementary
#A278EF #EFDD78 #8AEF78
monochromatic
#5B19D4 #7C41E9 #A278EF #C8AFF5 #ECE4FC

Accessibility & contrast

On white

3.25
#A278EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#A278EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A278EF
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A278EF#FFFFFF#000000##000000
##A278EF1.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8FF3
Deuteranopia (green-blind)
#588EEC
Tritanopia (blue-blind)
#918FA8
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #a278ef;
/* rgb */ color: rgb(162, 120, 239);
/* oklch */ color: oklch(66.6% 0.173 297.8);
Tailwind
colors: {
  custom: {
    50: '#c1a0f5',
    500: '#a278ef',
    950: '#000000',
  },
}
SCSS
$custom: #a278ef;
$custom-light: #c1a0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#a278ef",
  "rgb": {
    "r": 162,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 261.176,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.66603,
    "c": 0.17319,
    "h": 297.8
  },
  "luminance": 0.27346
}

Semantic roles & 50–950 ramp

primary
#A278EF
secondary
#E6F2D1
accent
#DB0A91
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130F17
muted
#827E85

Preview Lab

Preview with #A278EF

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

Preview Lab → · Contrast checker → · Palette generator →

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