#A796FE#A796FE

#A796FE is a light, vivid blue. Relative luminance 0.372; OKLCH L 73.1% C 0.148 H 289.7°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#A796FE
RGBrgb(167, 150, 254)
HSLhsl(250, 98%, 79%)
HSVhsv(250, 41%, 100%)
CMYKcmyk(34.3%, 40.9%, 0%, 0.4%)
CIE-LABlab(67.41, 29.37, -49.66)
CIE-LCHlch(67.41, 57.69, 300.60°)
OKLaboklab(73.07% 0.05 -0.1394)
OKLCHoklch(73.07% 0.148 289.7)
XYZxyz(44.7273, 37.1828, 98.5672)
Luminance0.3718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A796FE #EDFE96
analogous
#96B9FE #A796FE #DB96FE
triadic
#A796FE #FEA796 #96FEA7
tetradic
#A796FE #FE96B9 #EDFE96 #96FEDB
square
#A796FE #FE96B9 #EDFE96 #96FEDB
split-complementary
#A796FE #FEDB96 #B9FE96
monochromatic
#411DFD #7459FD #A796FE #DAD3FF #E6E1FF

Accessibility & contrast

On white

2.49
#A796FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#A796FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A796FE
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A796FE#FFFFFF#000000##000000
##A796FE1.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A6FF
Deuteranopia (green-blind)
#75A2FB
Tritanopia (blue-blind)
#91AABE
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a796fe;
/* rgb */ color: rgb(167, 150, 254);
/* oklch */ color: oklch(73.1% 0.148 289.7);
Tailwind
colors: {
  custom: {
    50: '#c4b5ff',
    500: '#a796fe',
    950: '#000000',
  },
}
SCSS
$custom: #a796fe;
$custom-light: #c4b5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#a796fe",
  "rgb": {
    "r": 167,
    "g": 150,
    "b": 254
  },
  "hsl": {
    "h": 249.808,
    "s": 98.113,
    "l": 79.216
  },
  "oklch": {
    "l": 0.73067,
    "c": 0.14814,
    "h": 289.7
  },
  "luminance": 0.37184
}

Semantic roles & 50–950 ramp

primary
#A796FE
secondary
#F1F7D4
accent
#E600C0
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #A796FE

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

Preview Lab → · Contrast checker → · Palette generator →

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