#A245D7#A245D7

#A245D7 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.9% C 0.219 H 310.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#A245D7
RGBrgb(162, 69, 215)
HSLhsl(278, 65%, 56%)
HSVhsv(278, 68%, 84%)
CMYKcmyk(24.7%, 67.9%, 0%, 15.7%)
CIE-LABlab(48.06, 61.60, -58.79)
CIE-LCHlch(48.06, 85.15, 316.33°)
OKLaboklab(57.93% 0.1422 -0.1662)
OKLCHoklch(57.93% 0.219 310.6)
XYZxyz(29.2918, 16.8446, 65.9851)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A245D7 #7AD745
analogous
#5945D7 #A245D7 #D745C3
triadic
#A245D7 #D7A245 #45D7A2
tetradic
#A245D7 #D75945 #7AD745 #45C3D7
square
#A245D7 #D75945 #7AD745 #45C3D7
split-complementary
#A245D7 #C3D745 #45D759
monochromatic
#5F1D85 #8327B7 #A245D7 #BB77E2 #D4AAED

Accessibility & contrast

On white

4.81
#A245D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#A245D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A245D7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A245D7#FFFFFF#000000##FFFFFF
##A245D71.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDB
Deuteranopia (green-blind)
#3074D4
Tritanopia (blue-blind)
#9B6489
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a245d7;
/* rgb */ color: rgb(162, 69, 215);
/* oklch */ color: oklch(57.9% 0.219 310.6);
Tailwind
colors: {
  custom: {
    50: '#c280e4',
    500: '#a245d7',
    950: '#000000',
  },
}
SCSS
$custom: #a245d7;
$custom-light: #c280e4;
$custom-dark: #000000;
JSON
{
  "hex": "#a245d7",
  "rgb": {
    "r": 162,
    "g": 69,
    "b": 215
  },
  "hsl": {
    "h": 278.219,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57934,
    "c": 0.21868,
    "h": 310.6
  },
  "luminance": 0.16844
}

Semantic roles & 50–950 ramp

primary
#A245D7
secondary
#B4DA9E
accent
#E8407D
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A245D7

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

Preview Lab → · Contrast checker → · Palette generator →

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