#942ED0#942ED0

#942ED0 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.4% C 0.233 H 308.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#942ED0
RGBrgb(148, 46, 208)
HSLhsl(278, 64%, 50%)
HSVhsv(278, 78%, 82%)
CMYKcmyk(28.8%, 77.9%, 0%, 18.4%)
CIE-LABlab(42.47, 66.51, -63.92)
CIE-LCHlch(42.47, 92.25, 316.14°)
OKLaboklab(53.41% 0.1466 -0.1815)
OKLCHoklch(53.41% 0.233 308.9)
XYZxyz(24.5726, 12.8044, 60.8393)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942ED0 #6AD02E
analogous
#432ED0 #942ED0 #D02EBB
triadic
#942ED0 #D0942E #2ED094
tetradic
#942ED0 #D0432E #6AD02E #2EBBD0
square
#942ED0 #D0432E #6AD02E #2EBBD0
split-complementary
#942ED0 #BBD02E #2ED043
monochromatic
#4D186C #70239E #942ED0 #AE5FDC #C792E7

Accessibility & contrast

On white

5.90
#942ED0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#942ED0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942ED0
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942ED0#FFFFFF#000000##FFFFFF
##942ED01.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D4
Deuteranopia (green-blind)
#0065CD
Tritanopia (blue-blind)
#8B577F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #942ed0;
/* rgb */ color: rgb(148, 46, 208);
/* oklch */ color: oklch(53.4% 0.233 308.9);
Tailwind
colors: {
  custom: {
    50: '#b973df',
    500: '#942ed0',
    950: '#000000',
  },
}
SCSS
$custom: #942ed0;
$custom-light: #b973df;
$custom-dark: #000000;
JSON
{
  "hex": "#942ed0",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 208
  },
  "hsl": {
    "h": 277.778,
    "s": 63.78,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53414,
    "c": 0.23336,
    "h": 308.9
  },
  "luminance": 0.12804
}

Semantic roles & 50–950 ramp

primary
#942ED0
secondary
#A3D288
accent
#E7417E
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942ED0

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

Preview Lab → · Contrast checker → · Palette generator →

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