#942DAF#942DAF

#942DAF is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.0% C 0.205 H 318.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#942DAF
RGBrgb(148, 45, 175)
HSLhsl(288, 59%, 43%)
HSVhsv(288, 74%, 69%)
CMYKcmyk(15.4%, 74.3%, 0%, 31.4%)
CIE-LABlab(40.03, 60.23, -48.55)
CIE-LCHlch(40.03, 77.36, 321.13°)
OKLaboklab(50.96% 0.153 -0.1364)
OKLCHoklch(50.96% 0.205 318.3)
XYZxyz(20.8879, 11.2688, 41.6240)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DAF #48AF2D
analogous
#532DAF #942DAF #AF2D89
triadic
#942DAF #AF942D #2DAF94
tetradic
#942DAF #AF532D #48AF2D #2D89AF
square
#942DAF #AF532D #48AF2D #2D89AF
split-complementary
#942DAF #89AF2D #2DAF53
monochromatic
#42144E #6B207E #942DAF #B449D0 #C87ADD

Accessibility & contrast

On white

6.45
#942DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#942DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DAF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DAF#FFFFFF#000000##FFFFFF
##942DAF1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#3362AC
Tritanopia (blue-blind)
#93486C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #942daf;
/* rgb */ color: rgb(148, 45, 175);
/* oklch */ color: oklch(51.0% 0.205 318.3);
Tailwind
colors: {
  custom: {
    50: '#b771c7',
    500: '#942daf',
    950: '#000000',
  },
}
SCSS
$custom: #942daf;
$custom-light: #b771c7;
$custom-dark: #000000;
JSON
{
  "hex": "#942daf",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 287.538,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50964,
    "c": 0.20497,
    "h": 318.3
  },
  "luminance": 0.11268
}

Semantic roles & 50–950 ramp

primary
#942DAF
secondary
#84C573
accent
#E24666
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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