#942ECD#942ECD

#942ECD is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.2% C 0.231 H 309.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#942ECD
RGBrgb(148, 46, 205)
HSLhsl(278, 63%, 49%)
HSVhsv(278, 78%, 80%)
CMYKcmyk(27.8%, 77.6%, 0%, 19.6%)
CIE-LABlab(42.24, 65.89, -62.55)
CIE-LCHlch(42.24, 90.85, 316.49°)
OKLaboklab(53.19% 0.1473 -0.1775)
OKLCHoklch(53.19% 0.231 309.7)
XYZxyz(24.2070, 12.6582, 58.9138)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942ECD #67CD2E
analogous
#452ECD #942ECD #CD2EB7
triadic
#942ECD #CD942E #2ECD94
tetradic
#942ECD #CD452E #67CD2E #2EB7CD
square
#942ECD #CD452E #67CD2E #2EB7CD
split-complementary
#942ECD #B7CD2E #2ECD45
monochromatic
#4C1869 #70239B #942ECD #AE5DDB #C78FE6

Accessibility & contrast

On white

5.95
#942ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#942ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942ECD
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942ECD#FFFFFF#000000##FFFFFF
##942ECD1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0065CA
Tritanopia (blue-blind)
#8C567D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #942ecd;
/* rgb */ color: rgb(148, 46, 205);
/* oklch */ color: oklch(53.2% 0.231 309.7);
Tailwind
colors: {
  custom: {
    50: '#b972dd',
    500: '#942ecd',
    950: '#000000',
  },
}
SCSS
$custom: #942ecd;
$custom-light: #b972dd;
$custom-dark: #000000;
JSON
{
  "hex": "#942ecd",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 205
  },
  "hsl": {
    "h": 278.491,
    "s": 63.347,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53187,
    "c": 0.23066,
    "h": 309.7
  },
  "luminance": 0.12658
}

Semantic roles & 50–950 ramp

primary
#942ECD
secondary
#A1D086
accent
#E6417D
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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