#942AC0#942AC0

#942AC0 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.9% C 0.223 H 313.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#942AC0
RGBrgb(148, 42, 192)
HSLhsl(282, 64%, 46%)
HSVhsv(282, 78%, 75%)
CMYKcmyk(22.9%, 78.1%, 0%, 24.7%)
CIE-LABlab(40.83, 64.59, -57.28)
CIE-LCHlch(40.83, 86.33, 318.43°)
OKLaboklab(51.9% 0.1531 -0.162)
OKLCHoklch(51.9% 0.223 313.4)
XYZxyz(22.5535, 11.7583, 50.9405)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942AC0 #56C02A
analogous
#492AC0 #942AC0 #C02AA1
triadic
#942AC0 #C0942A #2AC094
tetradic
#942AC0 #C0492A #56C02A #2AA1C0
square
#942AC0 #C0492A #56C02A #2AA1C0
split-complementary
#942AC0 #A1C02A #2AC049
monochromatic
#47145C #6D1F8E #942AC0 #B04FD8 #C781E3

Accessibility & contrast

On white

6.27
#942AC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#942AC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942AC0
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942AC0#FFFFFF#000000##FFFFFF
##942AC01.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC4
Deuteranopia (green-blind)
#1763BD
Tritanopia (blue-blind)
#8F4E75
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #942ac0;
/* rgb */ color: rgb(148, 42, 192);
/* oklch */ color: oklch(51.9% 0.223 313.4);
Tailwind
colors: {
  custom: {
    50: '#b870d4',
    500: '#942ac0',
    950: '#000000',
  },
}
SCSS
$custom: #942ac0;
$custom-light: #b870d4;
$custom-dark: #000000;
JSON
{
  "hex": "#942ac0",
  "rgb": {
    "r": 148,
    "g": 42,
    "b": 192
  },
  "hsl": {
    "h": 282.4,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51897,
    "c": 0.22292,
    "h": 313.4
  },
  "luminance": 0.11758
}

Semantic roles & 50–950 ramp

primary
#942AC0
secondary
#92CC7A
accent
#E74172
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #942AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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