#A245E4#A245E4

#A245E4 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.8% C 0.231 H 307.4°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#A245E4
RGBrgb(162, 69, 228)
HSLhsl(275, 75%, 58%)
HSVhsv(275, 70%, 89%)
CMYKcmyk(28.9%, 69.7%, 0%, 10.6%)
CIE-LABlab(48.93, 64.40, -64.78)
CIE-LCHlch(48.93, 91.35, 314.83°)
OKLaboklab(58.83% 0.1406 -0.1837)
OKLCHoklch(58.83% 0.231 307.4)
XYZxyz(31.0291, 17.5395, 75.1346)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A245E4 #87E445
analogous
#5245E4 #A245E4 #E445D7
triadic
#A245E4 #E4A245 #45E4A2
tetradic
#A245E4 #E45245 #87E445 #45D7E4
square
#A245E4 #E45245 #87E445 #45D7E4
split-complementary
#A245E4 #D7E445 #45E452
monochromatic
#621698 #851ECE #A245E4 #BD7AEC #D7B0F4

Accessibility & contrast

On white

4.66
#A245E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#A245E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A245E4
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A245E4#FFFFFF#000000##FFFFFF
##A245E41.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E9
Deuteranopia (green-blind)
#1475E1
Tritanopia (blue-blind)
#976990
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a245e4;
/* rgb */ color: rgb(162, 69, 228);
/* oklch */ color: oklch(58.8% 0.231 307.4);
Tailwind
colors: {
  custom: {
    50: '#c380ed',
    500: '#a245e4',
    950: '#000000',
  },
}
SCSS
$custom: #a245e4;
$custom-light: #c380ed;
$custom-dark: #000000;
JSON
{
  "hex": "#a245e4",
  "rgb": {
    "r": 162,
    "g": 69,
    "b": 228
  },
  "hsl": {
    "h": 275.094,
    "s": 74.648,
    "l": 58.235
  },
  "oklch": {
    "l": 0.5883,
    "c": 0.2314,
    "h": 307.4
  },
  "luminance": 0.17539
}

Semantic roles & 50–950 ramp

primary
#A245E4
secondary
#BDE2A3
accent
#F13784
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A245E4

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

Preview Lab → · Contrast checker → · Palette generator →

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