#942DD0#942DD0

#942DD0 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.3% C 0.234 H 309.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#942DD0
RGBrgb(148, 45, 208)
HSLhsl(278, 64%, 50%)
HSVhsv(278, 78%, 82%)
CMYKcmyk(28.8%, 78.4%, 0%, 18.4%)
CIE-LABlab(42.35, 66.85, -64.12)
CIE-LCHlch(42.35, 92.63, 316.20°)
OKLaboklab(53.33% 0.1474 -0.1821)
OKLCHoklch(53.33% 0.234 309)
XYZxyz(24.5340, 12.7272, 60.8264)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942DD0 #69D02D
analogous
#422DD0 #942DD0 #D02DBB
triadic
#942DD0 #D0942D #2DD094
tetradic
#942DD0 #D0422D #69D02D #2DBBD0
square
#942DD0 #D0422D #69D02D #2DBBD0
split-complementary
#942DD0 #BBD02D #2DD042
monochromatic
#4C176B #70229E #942DD0 #AE5EDC #C790E7

Accessibility & contrast

On white

5.92
#942DD0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#942DD0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942DD0
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942DD0#FFFFFF#000000##FFFFFF
##942DD01.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.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: #942dd0;
/* rgb */ color: rgb(148, 45, 208);
/* oklch */ color: oklch(53.3% 0.234 309.0);
Tailwind
colors: {
  custom: {
    50: '#b972df',
    500: '#942dd0',
    950: '#000000',
  },
}
SCSS
$custom: #942dd0;
$custom-light: #b972df;
$custom-dark: #000000;
JSON
{
  "hex": "#942dd0",
  "rgb": {
    "r": 148,
    "g": 45,
    "b": 208
  },
  "hsl": {
    "h": 277.914,
    "s": 64.427,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53331,
    "c": 0.23429,
    "h": 309
  },
  "luminance": 0.12727
}

Semantic roles & 50–950 ramp

primary
#942DD0
secondary
#A3D287
accent
#E7407E
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942DD0

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

Preview Lab → · Contrast checker → · Palette generator →

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