#942797#942797

#942797 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.9% C 0.191 H 326.9°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#942797
RGBrgb(148, 39, 151)
HSLhsl(298, 59%, 37%)
HSVhsv(298, 74%, 59%)
CMYKcmyk(2%, 74.2%, 0%, 40.8%)
CIE-LABlab(37.81, 57.95, -37.69)
CIE-LCHlch(37.81, 69.12, 326.96°)
OKLaboklab(48.91% 0.1602 -0.1046)
OKLCHoklch(48.91% 0.191 326.9)
XYZxyz(18.5239, 9.9826, 30.2233)
Luminance0.0998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942797 #2A9727
analogous
#5C2797 #942797 #972762
triadic
#942797 #979427 #279794
tetradic
#942797 #975C27 #2A9727 #276297
square
#942797 #975C27 #2A9727 #276297
split-complementary
#942797 #629727 #27975C
monochromatic
#350E36 #641A66 #942797 #C434C8 #D362D6

Accessibility & contrast

On white

7.01
#942797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#942797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #942797
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942797#FFFFFF#000000##FFFFFF
##9427971.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A509A
Deuteranopia (green-blind)
#435E94
Tritanopia (blue-blind)
#98395D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #942797;
/* rgb */ color: rgb(148, 39, 151);
/* oklch */ color: oklch(48.9% 0.191 326.9);
Tailwind
colors: {
  custom: {
    50: '#b76db6',
    500: '#942797',
    950: '#000000',
  },
}
SCSS
$custom: #942797;
$custom-light: #b76db6;
$custom-dark: #000000;
JSON
{
  "hex": "#942797",
  "rgb": {
    "r": 148,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 298.393,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48908,
    "c": 0.19134,
    "h": 326.9
  },
  "luminance": 0.09981
}

Semantic roles & 50–950 ramp

primary
#942797
secondary
#60BC5E
accent
#E2464A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #942797

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

Preview Lab → · Contrast checker → · Palette generator →

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