#942799#942799

#942799 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.193 H 326.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#942799
RGBrgb(148, 39, 153)
HSLhsl(297, 59%, 38%)
HSVhsv(297, 75%, 60%)
CMYKcmyk(3.3%, 74.5%, 0%, 40%)
CIE-LABlab(37.93, 58.29, -38.71)
CIE-LCHlch(37.93, 69.98, 326.41°)
OKLaboklab(49.03% 0.1602 -0.1076)
OKLCHoklch(49.03% 0.193 326.1)
XYZxyz(18.6877, 10.0481, 31.0860)
Luminance0.1005 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942799 #2C9927
analogous
#5B2799 #942799 #992765
triadic
#942799 #999427 #279994
tetradic
#942799 #995B27 #2C9927 #276599
square
#942799 #995B27 #2C9927 #276599
split-complementary
#942799 #659927 #27995B
monochromatic
#360E37 #651B68 #942799 #C333CA #D263D7

Accessibility & contrast

On white

6.98
#942799 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#942799 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942799
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942799#FFFFFF#000000##FFFFFF
##9427991.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04519C
Deuteranopia (green-blind)
#415E96
Tritanopia (blue-blind)
#983A5E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #942799;
/* rgb */ color: rgb(148, 39, 153);
/* oklch */ color: oklch(49.0% 0.193 326.1);
Tailwind
colors: {
  custom: {
    50: '#b76db7',
    500: '#942799',
    950: '#000000',
  },
}
SCSS
$custom: #942799;
$custom-light: #b76db7;
$custom-dark: #000000;
JSON
{
  "hex": "#942799",
  "rgb": {
    "r": 148,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 297.368,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4903,
    "c": 0.19295,
    "h": 326.1
  },
  "luminance": 0.10047
}

Semantic roles & 50–950 ramp

primary
#942799
secondary
#63BD5F
accent
#E3454C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #942799

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

Preview Lab → · Contrast checker → · Palette generator →

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