#942791#942791

#942791 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.187 H 329.2°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#942791
RGBrgb(148, 39, 145)
HSLhsl(302, 58%, 37%)
HSVhsv(302, 74%, 58%)
CMYKcmyk(0%, 73.6%, 2%, 42%)
CIE-LABlab(37.47, 56.93, -34.58)
CIE-LCHlch(37.47, 66.61, 328.73°)
OKLaboklab(48.55% 0.1602 -0.0956)
OKLCHoklch(48.55% 0.187 329.2)
XYZxyz(18.0489, 9.7926, 27.7221)
Luminance0.0979 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942791 #27942A
analogous
#612794 #942791 #94275B
triadic
#942791 #919427 #279194
tetradic
#942791 #946127 #27942A #275B94
square
#942791 #946127 #27942A #275B94
split-complementary
#942791 #5B9427 #279461
monochromatic
#330D32 #641A62 #942791 #C434C0 #D560D2

Accessibility & contrast

On white

7.10
#942791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#942791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #942791
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942791#FFFFFF#000000##FFFFFF
##9427911.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174F94
Deuteranopia (green-blind)
#465D8E
Tritanopia (blue-blind)
#99365A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #942791;
/* rgb */ color: rgb(148, 39, 145);
/* oklch */ color: oklch(48.6% 0.187 329.2);
Tailwind
colors: {
  custom: {
    50: '#b76db2',
    500: '#942791',
    950: '#000000',
  },
}
SCSS
$custom: #942791;
$custom-light: #b76db2;
$custom-dark: #000000;
JSON
{
  "hex": "#942791",
  "rgb": {
    "r": 148,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 301.651,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48551,
    "c": 0.18656,
    "h": 329.2
  },
  "luminance": 0.09791
}

Semantic roles & 50–950 ramp

primary
#942791
secondary
#5CBB5F
accent
#E24B46
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #942791

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

Preview Lab → · Contrast checker → · Palette generator →

#942791 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva