#A845E6#A845E6

#A845E6 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.7% C 0.235 H 309.1°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#A845E6
RGBrgb(168, 69, 230)
HSLhsl(277, 76%, 59%)
HSVhsv(277, 70%, 90%)
CMYKcmyk(27%, 70%, 0%, 9.8%)
CIE-LABlab(49.85, 66.00, -64.39)
CIE-LCHlch(49.85, 92.20, 315.71°)
OKLaboklab(59.69% 0.1481 -0.1824)
OKLCHoklch(59.69% 0.235 309.1)
XYZxyz(32.5566, 18.2948, 76.6638)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A845E6 #83E645
analogous
#5745E6 #A845E6 #E645D4
triadic
#A845E6 #E6A845 #45E6A8
tetradic
#A845E6 #E65745 #83E645 #45D4E6
square
#A845E6 #E65745 #83E645 #45D4E6
split-complementary
#A845E6 #D4E645 #45E657
monochromatic
#68159C #8C1CD2 #A845E6 #C17BED #DAB1F5

Accessibility & contrast

On white

4.51
#A845E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#A845E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A845E6
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A845E6#FFFFFF#000000##000000
##A845E61.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073EB
Deuteranopia (green-blind)
#2078E3
Tritanopia (blue-blind)
#9F6991
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #a845e6;
/* rgb */ color: rgb(168, 69, 230);
/* oklch */ color: oklch(59.7% 0.235 309.1);
Tailwind
colors: {
  custom: {
    50: '#c781ef',
    500: '#a845e6',
    950: '#000000',
  },
}
SCSS
$custom: #a845e6;
$custom-light: #c781ef;
$custom-dark: #000000;
JSON
{
  "hex": "#a845e6",
  "rgb": {
    "r": 168,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 276.894,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.59693,
    "c": 0.23495,
    "h": 309.1
  },
  "luminance": 0.18294
}

Semantic roles & 50–950 ramp

primary
#A845E6
secondary
#BCE3A4
accent
#F3357E
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #A845E6

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

Preview Lab → · Contrast checker → · Palette generator →

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