#A245D9#A245D9

#A245D9 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.1% C 0.221 H 310.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#A245D9
RGBrgb(162, 69, 217)
HSLhsl(278, 66%, 56%)
HSVhsv(278, 68%, 85%)
CMYKcmyk(25.3%, 68.2%, 0%, 14.9%)
CIE-LABlab(48.19, 62.02, -59.72)
CIE-LCHlch(48.19, 86.10, 316.08°)
OKLaboklab(58.07% 0.142 -0.1689)
OKLCHoklch(58.07% 0.221 310.1)
XYZxyz(29.5504, 16.9480, 67.3468)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A245D9 #7CD945
analogous
#5845D9 #A245D9 #D945C6
triadic
#A245D9 #D9A245 #45D9A2
tetradic
#A245D9 #D95845 #7CD945 #45C6D9
square
#A245D9 #D95845 #7CD945 #45C6D9
split-complementary
#A245D9 #C6D945 #45D958
monochromatic
#601C88 #8326BB #A245D9 #BB78E3 #D5ABEE

Accessibility & contrast

On white

4.78
#A245D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#A245D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A245D9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A245D9#FFFFFF#000000##FFFFFF
##A245D91.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDD
Deuteranopia (green-blind)
#2D74D6
Tritanopia (blue-blind)
#9A658A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a245d9;
/* rgb */ color: rgb(162, 69, 217);
/* oklch */ color: oklch(58.1% 0.221 310.1);
Tailwind
colors: {
  custom: {
    50: '#c280e6',
    500: '#a245d9',
    950: '#000000',
  },
}
SCSS
$custom: #a245d9;
$custom-light: #c280e6;
$custom-dark: #000000;
JSON
{
  "hex": "#a245d9",
  "rgb": {
    "r": 162,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 277.703,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58069,
    "c": 0.22063,
    "h": 310.1
  },
  "luminance": 0.16947
}

Semantic roles & 50–950 ramp

primary
#A245D9
secondary
#B5DB9E
accent
#E93F7E
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A245D9

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

Preview Lab → · Contrast checker → · Palette generator →

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