#A12BE2#A12BE2

#A12BE2 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 56.2% C 0.255 H 309.3°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#A12BE2
RGBrgb(161, 43, 226)
HSLhsl(279, 76%, 53%)
HSVhsv(279, 81%, 89%)
CMYKcmyk(28.8%, 81%, 0%, 11.4%)
CIE-LABlab(45.35, 73.25, -69.46)
CIE-LCHlch(45.35, 100.95, 316.52°)
OKLaboklab(56.24% 0.1616 -0.1974)
OKLCHoklch(56.24% 0.255 309.3)
XYZxyz(29.2865, 14.7964, 73.2500)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12BE2 #6CE22B
analogous
#462BE2 #A12BE2 #E22BC7
triadic
#A12BE2 #E2A12B #2BE2A1
tetradic
#A12BE2 #E2462B #6CE22B #2BC7E2
square
#A12BE2 #E2462B #6CE22B #2BC7E2
split-complementary
#A12BE2 #C7E22B #2BE246
monochromatic
#591281 #7F19B7 #A12BE2 #B961E9 #D197F1

Accessibility & contrast

On white

5.30
#A12BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#A12BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12BE2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12BE2#FFFFFF#000000##FFFFFF
##A12BE21.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#006DDE
Tritanopia (blue-blind)
#975C89
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a12be2;
/* rgb */ color: rgb(161, 43, 226);
/* oklch */ color: oklch(56.2% 0.255 309.3);
Tailwind
colors: {
  custom: {
    50: '#c374ec',
    500: '#a12be2',
    950: '#000000',
  },
}
SCSS
$custom: #a12be2;
$custom-light: #c374ec;
$custom-dark: #000000;
JSON
{
  "hex": "#a12be2",
  "rgb": {
    "r": 161,
    "g": 43,
    "b": 226
  },
  "hsl": {
    "h": 278.689,
    "s": 75.934,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56236,
    "c": 0.25511,
    "h": 309.3
  },
  "luminance": 0.14796
}

Semantic roles & 50–950 ramp

primary
#A12BE2
secondary
#A9DC8D
accent
#F33578
background
#FCF7FE
surface
#F9EEFD
border
#D2C9D5
text
#130916
muted
#827B84

Preview Lab

Preview with #A12BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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