#942EAF#942EAF

#942EAF is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.1% C 0.204 H 318.2°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#942EAF
RGBrgb(148, 46, 175)
HSLhsl(287, 58%, 43%)
HSVhsv(287, 74%, 69%)
CMYKcmyk(15.4%, 73.7%, 0%, 31.4%)
CIE-LABlab(40.16, 59.86, -48.34)
CIE-LCHlch(40.16, 76.95, 321.08°)
OKLaboklab(51.05% 0.1521 -0.1358)
OKLCHoklch(51.05% 0.204 318.2)
XYZxyz(20.9265, 11.3460, 41.6368)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942EAF #49AF2E
analogous
#532EAF #942EAF #AF2E89
triadic
#942EAF #AF942E #2EAF94
tetradic
#942EAF #AF532E #49AF2E #2E89AF
square
#942EAF #AF532E #49AF2E #2E89AF
split-complementary
#942EAF #89AF2E #2EAF53
monochromatic
#42154E #6B217F #942EAF #B44BD0 #C87BDC

Accessibility & contrast

On white

6.42
#942EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#942EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942EAF
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942EAF#FFFFFF#000000##FFFFFF
##942EAF1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #942eaf;
/* rgb */ color: rgb(148, 46, 175);
/* oklch */ color: oklch(51.1% 0.204 318.2);
Tailwind
colors: {
  custom: {
    50: '#b771c7',
    500: '#942eaf',
    950: '#000000',
  },
}
SCSS
$custom: #942eaf;
$custom-light: #b771c7;
$custom-dark: #000000;
JSON
{
  "hex": "#942eaf",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 287.442,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.51055,
    "c": 0.20387,
    "h": 318.2
  },
  "luminance": 0.11345
}

Semantic roles & 50–950 ramp

primary
#942EAF
secondary
#85C574
accent
#E24667
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #942EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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