#A845DF#A845DF

#A845DF is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 59.2% C 0.228 H 310.7°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#A845DF
RGBrgb(168, 69, 223)
HSLhsl(279, 71%, 57%)
HSVhsv(279, 69%, 87%)
CMYKcmyk(24.7%, 69.1%, 0%, 12.5%)
CIE-LABlab(49.39, 64.52, -61.18)
CIE-LCHlch(49.39, 88.91, 316.52°)
OKLaboklab(59.21% 0.1489 -0.173)
OKLCHoklch(59.21% 0.228 310.7)
XYZxyz(31.5933, 17.9095, 71.5903)
Luminance0.1791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A845DF #7CDF45
analogous
#5B45DF #A845DF #DF45C9
triadic
#A845DF #DFA845 #45DFA8
tetradic
#A845DF #DF5B45 #7CDF45 #45C9DF
square
#A845DF #DF5B45 #7CDF45 #45C9DF
split-complementary
#A845DF #C9DF45 #45DF5B
monochromatic
#661991 #8B22C5 #A845DF #C079E8 #D9ADF1

Accessibility & contrast

On white

4.58
#A845DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#A845DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A845DF
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A845DF#FFFFFF#000000##000000
##A845DF1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E3
Deuteranopia (green-blind)
#2E77DC
Tritanopia (blue-blind)
#A1668D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a845df;
/* rgb */ color: rgb(168, 69, 223);
/* oklch */ color: oklch(59.2% 0.228 310.7);
Tailwind
colors: {
  custom: {
    50: '#c680ea',
    500: '#a845df',
    950: '#000000',
  },
}
SCSS
$custom: #a845df;
$custom-light: #c680ea;
$custom-dark: #000000;
JSON
{
  "hex": "#a845df",
  "rgb": {
    "r": 168,
    "g": 69,
    "b": 223
  },
  "hsl": {
    "h": 278.571,
    "s": 70.642,
    "l": 57.255
  },
  "oklch": {
    "l": 0.59213,
    "c": 0.22825,
    "h": 310.7
  },
  "luminance": 0.17909
}

Semantic roles & 50–950 ramp

primary
#A845DF
secondary
#B7DFA1
accent
#ED3A7A
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A845DF

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

Preview Lab → · Contrast checker → · Palette generator →

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