#A845DC#A845DC

#A845DC is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 59.0% C 0.225 H 311.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#A845DC
RGBrgb(168, 69, 220)
HSLhsl(279, 68%, 57%)
HSVhsv(279, 69%, 86%)
CMYKcmyk(23.6%, 68.6%, 0%, 13.7%)
CIE-LABlab(49.19, 63.89, -59.79)
CIE-LCHlch(49.19, 87.50, 316.90°)
OKLaboklab(59.01% 0.1493 -0.1689)
OKLCHoklch(59.01% 0.225 311.5)
XYZxyz(31.1924, 17.7492, 69.4790)
Luminance0.1775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A845DC #79DC45
analogous
#5D45DC #A845DC #DC45C4
triadic
#A845DC #DCA845 #45DCA8
tetradic
#A845DC #DC5D45 #79DC45 #45C4DC
square
#A845DC #DC5D45 #79DC45 #45C4DC
split-complementary
#A845DC #C4DC45 #45DC5D
monochromatic
#651A8C #8A24C0 #A845DC #C079E6 #D8ACEF

Accessibility & contrast

On white

4.62
#A845DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#A845DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A845DC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A845DC#FFFFFF#000000##FFFFFF
##A845DC1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#3277D9
Tritanopia (blue-blind)
#A2658C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a845dc;
/* rgb */ color: rgb(168, 69, 220);
/* oklch */ color: oklch(59.0% 0.225 311.5);
Tailwind
colors: {
  custom: {
    50: '#c680e8',
    500: '#a845dc',
    950: '#000000',
  },
}
SCSS
$custom: #a845dc;
$custom-light: #c680e8;
$custom-dark: #000000;
JSON
{
  "hex": "#a845dc",
  "rgb": {
    "r": 168,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 279.338,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59012,
    "c": 0.22539,
    "h": 311.5
  },
  "luminance": 0.17748
}

Semantic roles & 50–950 ramp

primary
#A845DC
secondary
#B5DDA0
accent
#EB3D79
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A845DC

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

Preview Lab → · Contrast checker → · Palette generator →

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