#A245E9#A245E9

#A245E9 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 59.2% C 0.236 H 306.3°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#A245E9
RGBrgb(162, 69, 233)
HSLhsl(274, 79%, 59%)
HSVhsv(274, 70%, 91%)
CMYKcmyk(30.5%, 70.4%, 0%, 8.6%)
CIE-LABlab(49.28, 65.49, -67.05)
CIE-LCHlch(49.28, 93.73, 314.33°)
OKLaboklab(59.19% 0.1399 -0.1904)
OKLCHoklch(59.19% 0.236 306.3)
XYZxyz(31.7332, 17.8211, 78.8431)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A245E9 #8CE945
analogous
#5045E9 #A245E9 #E945DE
triadic
#A245E9 #E9A245 #45E9A2
tetradic
#A245E9 #E95045 #8CE945 #45DEE9
square
#A245E9 #E95045 #8CE945 #45DEE9
split-complementary
#A245E9 #DEE945 #45E950
monochromatic
#6313A1 #8519D7 #A245E9 #BD7CEF #D9B2F6

Accessibility & contrast

On white

4.60
#A245E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#A245E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A245E9
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A245E9#FFFFFF#000000##FFFFFF
##A245E91.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EE
Deuteranopia (green-blind)
#0076E6
Tritanopia (blue-blind)
#966B93
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a245e9;
/* rgb */ color: rgb(162, 69, 233);
/* oklch */ color: oklch(59.2% 0.236 306.3);
Tailwind
colors: {
  custom: {
    50: '#c380f1',
    500: '#a245e9',
    950: '#000000',
  },
}
SCSS
$custom: #a245e9;
$custom-light: #c380f1;
$custom-dark: #000000;
JSON
{
  "hex": "#a245e9",
  "rgb": {
    "r": 162,
    "g": 69,
    "b": 233
  },
  "hsl": {
    "h": 274.024,
    "s": 78.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59185,
    "c": 0.23629,
    "h": 306.3
  },
  "luminance": 0.17821
}

Semantic roles & 50–950 ramp

primary
#A245E9
secondary
#C1E5A5
accent
#F53287
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #A245E9

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

Preview Lab → · Contrast checker → · Palette generator →

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