#A645F2#A645F2

#A645F2 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 60.3% C 0.246 H 305.7°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#A645F2
RGBrgb(166, 69, 242)
HSLhsl(274, 87%, 61%)
HSVhsv(274, 71%, 95%)
CMYKcmyk(31.4%, 71.5%, 0%, 5.1%)
CIE-LABlab(50.42, 68.21, -70.23)
CIE-LCHlch(50.42, 97.90, 314.16°)
OKLaboklab(60.3% 0.1437 -0.1996)
OKLCHoklch(60.3% 0.246 305.7)
XYZxyz(33.8775, 18.7743, 85.8263)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A645F2 #91F245
analogous
#4F45F2 #A645F2 #F245E7
triadic
#A645F2 #F2A645 #45F2A6
tetradic
#A645F2 #F24F45 #91F245 #45E7F2
square
#A645F2 #F24F45 #91F245 #45E7F2
split-complementary
#A645F2 #E7F245 #45F24F
monochromatic
#680CB0 #8A10E9 #A645F2 #C17EF6 #DDB7FA

Accessibility & contrast

On white

4.42
#A645F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#A645F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A645F2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A645F2#FFFFFF#000000##000000
##A645F21.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#0078EE
Tritanopia (blue-blind)
#986E98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a645f2;
/* rgb */ color: rgb(166, 69, 242);
/* oklch */ color: oklch(60.3% 0.246 305.7);
Tailwind
colors: {
  custom: {
    50: '#c681f7',
    500: '#a645f2',
    950: '#000000',
  },
}
SCSS
$custom: #a645f2;
$custom-light: #c681f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a645f2",
  "rgb": {
    "r": 166,
    "g": 69,
    "b": 242
  },
  "hsl": {
    "h": 273.642,
    "s": 86.935,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60304,
    "c": 0.24597,
    "h": 305.7
  },
  "luminance": 0.18774
}

Semantic roles & 50–950 ramp

primary
#A645F2
secondary
#C5EAA9
accent
#E30265
background
#FCF8FF
surface
#F9EFFF
border
#D2CAD7
text
#140B17
muted
#827C85

Preview Lab

Preview with #A645F2

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

Preview Lab → · Contrast checker → · Palette generator →

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