#942FD2#942FD2

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

Color values

HEX#942FD2
RGBrgb(148, 47, 210)
HSLhsl(277, 64%, 50%)
HSVhsv(277, 78%, 82%)
CMYKcmyk(29.5%, 77.6%, 0%, 17.6%)
CIE-LABlab(42.74, 66.58, -64.64)
CIE-LCHlch(42.74, 92.80, 315.85°)
OKLaboklab(53.65% 0.1454 -0.1837)
OKLCHoklch(53.65% 0.234 308.4)
XYZxyz(24.8597, 12.9825, 62.1565)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FD2 #6DD22F
analogous
#422FD2 #942FD2 #D22FBE
triadic
#942FD2 #D2942F #2FD294
tetradic
#942FD2 #D2422F #6DD22F #2FBED2
square
#942FD2 #D2422F #6DD22F #2FBED2
split-complementary
#942FD2 #BED22F #2FD242
monochromatic
#4E186F #7123A1 #942FD2 #AE61DD #C894E8

Accessibility & contrast

On white

5.84
#942FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#942FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FD2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FD2#FFFFFF#000000##FFFFFF
##942FD21.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#8A5880
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #942fd2;
/* rgb */ color: rgb(148, 47, 210);
/* oklch */ color: oklch(53.6% 0.234 308.4);
Tailwind
colors: {
  custom: {
    50: '#b973e1',
    500: '#942fd2',
    950: '#000000',
  },
}
SCSS
$custom: #942fd2;
$custom-light: #b973e1;
$custom-dark: #000000;
JSON
{
  "hex": "#942fd2",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 210
  },
  "hsl": {
    "h": 277.178,
    "s": 64.427,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5365,
    "c": 0.23424,
    "h": 308.4
  },
  "luminance": 0.12982
}

Semantic roles & 50–950 ramp

primary
#942FD2
secondary
#A6D38A
accent
#E74080
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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