#942AAF#942AAF

#942AAF is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.7% C 0.208 H 318.4°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#942AAF
RGBrgb(148, 42, 175)
HSLhsl(288, 61%, 43%)
HSVhsv(288, 76%, 69%)
CMYKcmyk(15.4%, 76%, 0%, 31.4%)
CIE-LABlab(39.66, 61.28, -49.14)
CIE-LCHlch(39.66, 78.55, 321.27°)
OKLaboklab(50.7% 0.1558 -0.1381)
OKLCHoklch(50.7% 0.208 318.4)
XYZxyz(20.7775, 11.0480, 41.5872)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942AAF #45AF2A
analogous
#522AAF #942AAF #AF2A87
triadic
#942AAF #AF942A #2AAF94
tetradic
#942AAF #AF522A #45AF2A #2A87AF
square
#942AAF #AF522A #45AF2A #2A87AF
split-complementary
#942AAF #87AF2A #2AAF52
monochromatic
#41124C #6A1E7E #942AAF #B544D2 #C975DE

Accessibility & contrast

On white

6.54
#942AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#942AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942AAF
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942AAF#FFFFFF#000000##FFFFFF
##942AAF1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#3161AC
Tritanopia (blue-blind)
#93466B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #942aaf;
/* rgb */ color: rgb(148, 42, 175);
/* oklch */ color: oklch(50.7% 0.208 318.4);
Tailwind
colors: {
  custom: {
    50: '#b76fc8',
    500: '#942aaf',
    950: '#000000',
  },
}
SCSS
$custom: #942aaf;
$custom-light: #b76fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#942aaf",
  "rgb": {
    "r": 148,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 287.82,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50703,
    "c": 0.20817,
    "h": 318.4
  },
  "luminance": 0.11047
}

Semantic roles & 50–950 ramp

primary
#942AAF
secondary
#81C66F
accent
#E44364
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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