#942ABA#942ABA

#942ABA is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.5% C 0.218 H 315.1°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#942ABA
RGBrgb(148, 42, 186)
HSLhsl(284, 63%, 45%)
HSVhsv(284, 77%, 73%)
CMYKcmyk(20.4%, 77.4%, 0%, 27.1%)
CIE-LABlab(40.41, 63.41, -54.44)
CIE-LCHlch(40.41, 83.57, 319.35°)
OKLaboklab(51.47% 0.1542 -0.1537)
OKLCHoklch(51.47% 0.218 315.1)
XYZxyz(21.9022, 11.4978, 47.5104)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942ABA #50BA2A
analogous
#4C2ABA #942ABA #BA2A98
triadic
#942ABA #BA942A #2ABA94
tetradic
#942ABA #BA4C2A #50BA2A #2A98BA
square
#942ABA #BA4C2A #50BA2A #2A98BA
split-complementary
#942ABA #98BA2A #2ABA4C
monochromatic
#451356 #6C1F88 #942ABA #B24BD6 #C77DE2

Accessibility & contrast

On white

6.36
#942ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#942ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942ABA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942ABA#FFFFFF#000000##FFFFFF
##942ABA1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#2362B7
Tritanopia (blue-blind)
#914B71
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #942aba;
/* rgb */ color: rgb(148, 42, 186);
/* oklch */ color: oklch(51.5% 0.218 315.1);
Tailwind
colors: {
  custom: {
    50: '#b870d0',
    500: '#942aba',
    950: '#000000',
  },
}
SCSS
$custom: #942aba;
$custom-light: #b870d0;
$custom-dark: #000000;
JSON
{
  "hex": "#942aba",
  "rgb": {
    "r": 148,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 284.167,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51466,
    "c": 0.21768,
    "h": 315.1
  },
  "luminance": 0.11497
}

Semantic roles & 50–950 ramp

primary
#942ABA
secondary
#8CCA76
accent
#E6426D
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #942ABA

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

Preview Lab → · Contrast checker → · Palette generator →

#942ABA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva