#A845E5#A845E5

#A845E5 is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 59.6% C 0.234 H 309.3°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#A845E5
RGBrgb(168, 69, 229)
HSLhsl(277, 75%, 58%)
HSVhsv(277, 70%, 90%)
CMYKcmyk(26.6%, 69.9%, 0%, 10.2%)
CIE-LABlab(49.78, 65.78, -63.93)
CIE-LCHlch(49.78, 91.73, 315.82°)
OKLaboklab(59.62% 0.1482 -0.1811)
OKLCHoklch(59.62% 0.234 309.3)
XYZxyz(32.4166, 18.2388, 75.9263)
Luminance0.1824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A845E5 #82E545
analogous
#5845E5 #A845E5 #E545D2
triadic
#A845E5 #E5A845 #45E5A8
tetradic
#A845E5 #E55845 #82E545 #45D2E5
square
#A845E5 #E55845 #82E545 #45D2E5
split-complementary
#A845E5 #D2E545 #45E558
monochromatic
#68169A #8C1DD0 #A845E5 #C17BED #DAB0F4

Accessibility & contrast

On white

4.52
#A845E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#A845E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A845E5
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A845E5#FFFFFF#000000##000000
##A845E51.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072EA
Deuteranopia (green-blind)
#2378E2
Tritanopia (blue-blind)
#9F6991
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #a845e5;
/* rgb */ color: rgb(168, 69, 229);
/* oklch */ color: oklch(59.6% 0.234 309.3);
Tailwind
colors: {
  custom: {
    50: '#c781ee',
    500: '#a845e5',
    950: '#000000',
  },
}
SCSS
$custom: #a845e5;
$custom-light: #c781ee;
$custom-dark: #000000;
JSON
{
  "hex": "#a845e5",
  "rgb": {
    "r": 168,
    "g": 69,
    "b": 229
  },
  "hsl": {
    "h": 277.125,
    "s": 75.472,
    "l": 58.431
  },
  "oklch": {
    "l": 0.59624,
    "c": 0.23399,
    "h": 309.3
  },
  "luminance": 0.18238
}

Semantic roles & 50–950 ramp

primary
#A845E5
secondary
#BBE3A3
accent
#F2367E
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A845E5

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

Preview Lab → · Contrast checker → · Palette generator →

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