#942BCA#942BCA

#942BCA is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.7% C 0.231 H 310.6°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#942BCA
RGBrgb(148, 43, 202)
HSLhsl(280, 65%, 48%)
HSVhsv(280, 79%, 79%)
CMYKcmyk(26.7%, 78.7%, 0%, 20.8%)
CIE-LABlab(41.67, 66.28, -61.74)
CIE-LCHlch(41.67, 90.58, 317.03°)
OKLaboklab(52.72% 0.1503 -0.1751)
OKLCHoklch(52.72% 0.231 310.6)
XYZxyz(23.7352, 12.2885, 56.9872)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942BCA #61CA2B
analogous
#452BCA #942BCA #CA2BB0
triadic
#942BCA #CA942B #2BCA94
tetradic
#942BCA #CA452B #61CA2B #2BB0CA
square
#942BCA #CA452B #61CA2B #2BB0CA
split-complementary
#942BCA #B0CA2B #2BCA45
monochromatic
#4A1665 #6F2098 #942BCA #AE57DB #C789E6

Accessibility & contrast

On white

6.07
#942BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#942BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942BCA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942BCA#FFFFFF#000000##FFFFFF
##942BCA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#8D537B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #942bca;
/* rgb */ color: rgb(148, 43, 202);
/* oklch */ color: oklch(52.7% 0.231 310.6);
Tailwind
colors: {
  custom: {
    50: '#b971db',
    500: '#942bca',
    950: '#000000',
  },
}
SCSS
$custom: #942bca;
$custom-light: #b971db;
$custom-dark: #000000;
JSON
{
  "hex": "#942bca",
  "rgb": {
    "r": 148,
    "g": 43,
    "b": 202
  },
  "hsl": {
    "h": 279.623,
    "s": 64.898,
    "l": 48.039
  },
  "oklch": {
    "l": 0.52716,
    "c": 0.23079,
    "h": 310.6
  },
  "luminance": 0.12288
}

Semantic roles & 50–950 ramp

primary
#942BCA
secondary
#9CD081
accent
#E84079
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #942BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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