#942ED3#942ED3

#942ED3 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.6% C 0.236 H 308.2°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#942ED3
RGBrgb(148, 46, 211)
HSLhsl(277, 65%, 50%)
HSVhsv(277, 78%, 83%)
CMYKcmyk(29.9%, 78.2%, 0%, 17.3%)
CIE-LABlab(42.69, 67.14, -65.29)
CIE-LCHlch(42.69, 93.65, 315.80°)
OKLaboklab(53.64% 0.1459 -0.1856)
OKLCHoklch(53.64% 0.236 308.2)
XYZxyz(24.9451, 12.9534, 62.8015)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942ED3 #6DD32E
analogous
#422ED3 #942ED3 #D32EBF
triadic
#942ED3 #D3942E #2ED394
tetradic
#942ED3 #D3422E #6DD32E #2EBFD3
square
#942ED3 #D3422E #6DD32E #2EBFD3
split-complementary
#942ED3 #BFD32E #2ED342
monochromatic
#4E176F #7122A2 #942ED3 #AE61DE #C893E8

Accessibility & contrast

On white

5.85
#942ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#942ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942ED3
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942ED3#FFFFFF#000000##FFFFFF
##942ED31.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D7
Deuteranopia (green-blind)
#0066D0
Tritanopia (blue-blind)
#8A5881
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #942ed3;
/* rgb */ color: rgb(148, 46, 211);
/* oklch */ color: oklch(53.6% 0.236 308.2);
Tailwind
colors: {
  custom: {
    50: '#b973e1',
    500: '#942ed3',
    950: '#000000',
  },
}
SCSS
$custom: #942ed3;
$custom-light: #b973e1;
$custom-dark: #000000;
JSON
{
  "hex": "#942ed3",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 277.091,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53643,
    "c": 0.23607,
    "h": 308.2
  },
  "luminance": 0.12953
}

Semantic roles & 50–950 ramp

primary
#942ED3
secondary
#A6D38A
accent
#E84080
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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