#A278FB#A278FB

#A278FB is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.3% C 0.188 H 295.7°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#A278FB
RGBrgb(162, 120, 251)
HSLhsl(259, 94%, 73%)
HSVhsv(259, 52%, 98%)
CMYKcmyk(35.5%, 52.2%, 0%, 1.6%)
CIE-LABlab(59.96, 44.21, -59.88)
CIE-LCHlch(59.96, 74.44, 306.44°)
OKLaboklab(67.31% 0.0816 -0.1695)
OKLCHoklch(67.31% 0.188 295.7)
XYZxyz(39.0249, 28.0787, 94.6117)
Luminance0.2808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A278FB #D1FB78
analogous
#788FFB #A278FB #E478FB
triadic
#A278FB #FBA278 #78FBA2
tetradic
#A278FB #FB788F #D1FB78 #78FBE4
square
#A278FB #FB788F #D1FB78 #78FBE4
split-complementary
#A278FB #FBE478 #8FFB78
monochromatic
#5207F1 #793DF9 #A278FB #CBB3FD #EBE1FE

Accessibility & contrast

On white

3.17
#A278FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#A278FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A278FB
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A278FB#FFFFFF#000000##000000
##A278FB1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4291FF
Deuteranopia (green-blind)
#4D8FF8
Tritanopia (blue-blind)
#8D92AE
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #a278fb;
/* rgb */ color: rgb(162, 120, 251);
/* oklch */ color: oklch(67.3% 0.188 295.7);
Tailwind
colors: {
  custom: {
    50: '#c2a0fd',
    500: '#a278fb',
    950: '#000000',
  },
}
SCSS
$custom: #a278fb;
$custom-light: #c2a0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#a278fb",
  "rgb": {
    "r": 162,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 259.237,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.67314,
    "c": 0.18814,
    "h": 295.7
  },
  "luminance": 0.28079
}

Semantic roles & 50–950 ramp

primary
#A278FB
secondary
#ECF6D5
accent
#E6009C
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F18
muted
#827E86

Preview Lab

Preview with #A278FB

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

Preview Lab → · Contrast checker → · Palette generator →

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