#942BA5#942BA5

#942BA5 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.1% C 0.199 H 321.7°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#942BA5
RGBrgb(148, 43, 165)
HSLhsl(292, 59%, 41%)
HSVhsv(292, 74%, 65%)
CMYKcmyk(10.3%, 73.9%, 0%, 35.3%)
CIE-LABlab(39.14, 59.06, -44.01)
CIE-LCHlch(39.14, 73.65, 323.31°)
OKLaboklab(50.13% 0.1558 -0.1231)
OKLCHoklch(50.13% 0.199 321.7)
XYZxyz(19.8674, 10.7414, 36.6168)
Luminance0.1074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942BA5 #3CA52B
analogous
#572BA5 #942BA5 #A52B79
triadic
#942BA5 #A5942B #2BA594
tetradic
#942BA5 #A5572B #3CA52B #2B79A5
square
#942BA5 #A5572B #3CA52B #2B79A5
split-complementary
#942BA5 #79A52B #2BA557
monochromatic
#3D1244 #681E74 #942BA5 #BA40CD #CB71DA

Accessibility & contrast

On white

6.67
#942BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#942BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942BA5
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942BA5#FFFFFF#000000##FFFFFF
##942BA51.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#3B60A2
Tritanopia (blue-blind)
#954266
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #942ba5;
/* rgb */ color: rgb(148, 43, 165);
/* oklch */ color: oklch(50.1% 0.199 321.7);
Tailwind
colors: {
  custom: {
    50: '#b76fc0',
    500: '#942ba5',
    950: '#000000',
  },
}
SCSS
$custom: #942ba5;
$custom-light: #b76fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#942ba5",
  "rgb": {
    "r": 148,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 291.639,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50129,
    "c": 0.19855,
    "h": 321.7
  },
  "luminance": 0.1074
}

Semantic roles & 50–950 ramp

primary
#942BA5
secondary
#77C16B
accent
#E2465C
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #942BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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