#A245D8#A245D8

#A245D8 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.0% C 0.220 H 310.3°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#A245D8
RGBrgb(162, 69, 216)
HSLhsl(278, 65%, 56%)
HSVhsv(278, 68%, 85%)
CMYKcmyk(25%, 68.1%, 0%, 15.3%)
CIE-LABlab(48.13, 61.81, -59.26)
CIE-LCHlch(48.13, 85.63, 316.21°)
OKLaboklab(58% 0.1421 -0.1675)
OKLCHoklch(58% 0.22 310.3)
XYZxyz(29.4207, 16.8961, 66.6639)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A245D8 #7BD845
analogous
#5845D8 #A245D8 #D845C4
triadic
#A245D8 #D8A245 #45D8A2
tetradic
#A245D8 #D85845 #7BD845 #45C4D8
square
#A245D8 #D85845 #7BD845 #45C4D8
split-complementary
#A245D8 #C4D845 #45D858
monochromatic
#5F1C86 #8327B9 #A245D8 #BB78E3 #D5AAED

Accessibility & contrast

On white

4.80
#A245D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#A245D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A245D8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A245D8#FFFFFF#000000##FFFFFF
##A245D81.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#2E74D5
Tritanopia (blue-blind)
#9B6489
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a245d8;
/* rgb */ color: rgb(162, 69, 216);
/* oklch */ color: oklch(58.0% 0.220 310.3);
Tailwind
colors: {
  custom: {
    50: '#c280e5',
    500: '#a245d8',
    950: '#000000',
  },
}
SCSS
$custom: #a245d8;
$custom-light: #c280e5;
$custom-dark: #000000;
JSON
{
  "hex": "#a245d8",
  "rgb": {
    "r": 162,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 277.959,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58001,
    "c": 0.21966,
    "h": 310.3
  },
  "luminance": 0.16895
}

Semantic roles & 50–950 ramp

primary
#A245D8
secondary
#B4DB9E
accent
#E8407E
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A245D8

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

Preview Lab → · Contrast checker → · Palette generator →

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