#942FC9#942FC9

#942FC9 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 53.0% C 0.226 H 310.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#942FC9
RGBrgb(148, 47, 201)
HSLhsl(279, 62%, 49%)
HSVhsv(279, 77%, 79%)
CMYKcmyk(26.4%, 76.6%, 0%, 21.2%)
CIE-LABlab(42.07, 64.71, -60.51)
CIE-LCHlch(42.07, 88.59, 316.92°)
OKLaboklab(52.98% 0.1473 -0.1715)
OKLCHoklch(52.98% 0.226 310.6)
XYZxyz(23.7698, 12.5465, 56.4166)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942FC9 #64C92F
analogous
#472FC9 #942FC9 #C92FB1
triadic
#942FC9 #C9942F #2FC994
tetradic
#942FC9 #C9472F #64C92F #2FB1C9
square
#942FC9 #C9472F #64C92F #2FB1C9
split-complementary
#942FC9 #B1C92F #2FC947
monochromatic
#4B1866 #6F2397 #942FC9 #AE5CD9 #C78EE5

Accessibility & contrast

On white

5.98
#942FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#942FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942FC9
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942FC9#FFFFFF#000000##FFFFFF
##942FC91.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCD
Deuteranopia (green-blind)
#0065C6
Tritanopia (blue-blind)
#8D547B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #942fc9;
/* rgb */ color: rgb(148, 47, 201);
/* oklch */ color: oklch(53.0% 0.226 310.6);
Tailwind
colors: {
  custom: {
    50: '#b973da',
    500: '#942fc9',
    950: '#000000',
  },
}
SCSS
$custom: #942fc9;
$custom-light: #b973da;
$custom-dark: #000000;
JSON
{
  "hex": "#942fc9",
  "rgb": {
    "r": 148,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 279.351,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52975,
    "c": 0.22607,
    "h": 310.6
  },
  "luminance": 0.12546
}

Semantic roles & 50–950 ramp

primary
#942FC9
secondary
#9ECF85
accent
#E5437B
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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