#A278EB#A278EB

#A278EB is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.4% C 0.168 H 298.6°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#A278EB
RGBrgb(162, 120, 235)
HSLhsl(262, 74%, 70%)
HSVhsv(262, 49%, 92%)
CMYKcmyk(31.1%, 48.9%, 0%, 7.8%)
CIE-LABlab(59.08, 40.18, -52.43)
CIE-LCHlch(59.08, 66.06, 307.46°)
OKLaboklab(66.37% 0.0804 -0.1477)
OKLCHoklch(66.37% 0.168 298.6)
XYZxyz(36.6086, 27.1121, 81.8856)
Luminance0.2711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A278EB #C1EB78
analogous
#7888EB #A278EB #DC78EB
triadic
#A278EB #EBA278 #78EBA2
tetradic
#A278EB #EB7888 #C1EB78 #78EBDC
square
#A278EB #EB7888 #C1EB78 #78EBDC
split-complementary
#A278EB #EBDC78 #88EB78
monochromatic
#5D1ECB #7D43E3 #A278EB #C7ADF3 #EBE3FB

Accessibility & contrast

On white

3.27
#A278EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#A278EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A278EB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A278EB#FFFFFF#000000##000000
##A278EB1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#518EEF
Deuteranopia (green-blind)
#5B8DE8
Tritanopia (blue-blind)
#938EA7
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #a278eb;
/* rgb */ color: rgb(162, 120, 235);
/* oklch */ color: oklch(66.4% 0.168 298.6);
Tailwind
colors: {
  custom: {
    50: '#c1a0f2',
    500: '#a278eb',
    950: '#000000',
  },
}
SCSS
$custom: #a278eb;
$custom-light: #c1a0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a278eb",
  "rgb": {
    "r": 162,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 261.913,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.66373,
    "c": 0.16817,
    "h": 298.6
  },
  "luminance": 0.27112
}

Semantic roles & 50–950 ramp

primary
#A278EB
secondary
#E4F0CF
accent
#D60F8E
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #A278EB

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

Preview Lab → · Contrast checker → · Palette generator →

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