#A42BE2#A42BE2

#A42BE2 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.6% C 0.256 H 310.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#A42BE2
RGBrgb(164, 43, 226)
HSLhsl(280, 76%, 53%)
HSVhsv(280, 81%, 89%)
CMYKcmyk(27.4%, 81%, 0%, 11.4%)
CIE-LABlab(45.79, 73.72, -68.74)
CIE-LCHlch(45.79, 100.80, 317.00°)
OKLaboklab(56.63% 0.1655 -0.1951)
OKLCHoklch(56.63% 0.256 310.3)
XYZxyz(29.8985, 15.1119, 73.2786)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42BE2 #69E22B
analogous
#482BE2 #A42BE2 #E22BC5
triadic
#A42BE2 #E2A42B #2BE2A4
tetradic
#A42BE2 #E2482B #69E22B #2BC5E2
square
#A42BE2 #E2482B #69E22B #2BC5E2
split-complementary
#A42BE2 #C5E22B #2BE248
monochromatic
#5B1281 #8119B7 #A42BE2 #BB61E9 #D297F1

Accessibility & contrast

On white

5.22
#A42BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#A42BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42BE2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42BE2#FFFFFF#000000##FFFFFF
##A42BE21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#006EDE
Tritanopia (blue-blind)
#9B5B89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a42be2;
/* rgb */ color: rgb(164, 43, 226);
/* oklch */ color: oklch(56.6% 0.256 310.3);
Tailwind
colors: {
  custom: {
    50: '#c574ec',
    500: '#a42be2',
    950: '#000000',
  },
}
SCSS
$custom: #a42be2;
$custom-light: #c574ec;
$custom-dark: #000000;
JSON
{
  "hex": "#a42be2",
  "rgb": {
    "r": 164,
    "g": 43,
    "b": 226
  },
  "hsl": {
    "h": 279.672,
    "s": 75.934,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56626,
    "c": 0.2559,
    "h": 310.3
  },
  "luminance": 0.15111
}

Semantic roles & 50–950 ramp

primary
#A42BE2
secondary
#A8DC8D
accent
#F33575
background
#FCF7FE
surface
#F9EEFD
border
#D2C9D5
text
#140916
muted
#827B84

Preview Lab

Preview with #A42BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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