#A745F2#A745F2

#A745F2 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 60.4% C 0.246 H 306.1°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#A745F2
RGBrgb(167, 69, 242)
HSLhsl(274, 87%, 61%)
HSVhsv(274, 71%, 95%)
CMYKcmyk(31%, 71.5%, 0%, 5.1%)
CIE-LABlab(50.55, 68.39, -70.02)
CIE-LCHlch(50.55, 97.87, 314.33°)
OKLaboklab(60.42% 0.145 -0.199)
OKLCHoklch(60.42% 0.246 306.1)
XYZxyz(34.0880, 18.8829, 85.8361)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A745F2 #90F245
analogous
#5045F2 #A745F2 #F245E7
triadic
#A745F2 #F2A745 #45F2A7
tetradic
#A745F2 #F25045 #90F245 #45E7F2
square
#A745F2 #F25045 #90F245 #45E7F2
split-complementary
#A745F2 #E7F245 #45F250
monochromatic
#690CB0 #8B10E9 #A745F2 #C27EF6 #DDB7FA

Accessibility & contrast

On white

4.40
#A745F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#A745F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A745F2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A745F2#FFFFFF#000000##000000
##A745F21.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#0079EE
Tritanopia (blue-blind)
#9A6E98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a745f2;
/* rgb */ color: rgb(167, 69, 242);
/* oklch */ color: oklch(60.4% 0.246 306.1);
Tailwind
colors: {
  custom: {
    50: '#c781f7',
    500: '#a745f2',
    950: '#000000',
  },
}
SCSS
$custom: #a745f2;
$custom-light: #c781f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a745f2",
  "rgb": {
    "r": 167,
    "g": 69,
    "b": 242
  },
  "hsl": {
    "h": 273.988,
    "s": 86.935,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60422,
    "c": 0.2462,
    "h": 306.1
  },
  "luminance": 0.18883
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A745F2

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

Preview Lab → · Contrast checker → · Palette generator →

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