#942897#942897

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

Color values

HEX#942897
RGBrgb(148, 40, 151)
HSLhsl(298, 58%, 37%)
HSVhsv(298, 74%, 59%)
CMYKcmyk(2%, 73.5%, 0%, 40.8%)
CIE-LABlab(37.93, 57.61, -37.50)
CIE-LCHlch(37.93, 68.73, 326.94°)
OKLaboklab(48.99% 0.1593 -0.1041)
OKLCHoklch(48.99% 0.19 326.8)
XYZxyz(18.5571, 10.0491, 30.2344)
Luminance0.1005 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942897 #2B9728
analogous
#5C2897 #942897 #972863
triadic
#942897 #979428 #289794
tetradic
#942897 #975C28 #2B9728 #286397
square
#942897 #975C28 #2B9728 #286397
split-complementary
#942897 #639728 #28975C
monochromatic
#350E36 #651B67 #942897 #C335C7 #D364D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##942897#FFFFFF#000000##FFFFFF
##9428971.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)
#0D519A
Deuteranopia (green-blind)
#435E94
Tritanopia (blue-blind)
#983A5D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #942897;
/* rgb */ color: rgb(148, 40, 151);
/* oklch */ color: oklch(49.0% 0.190 326.8);
Tailwind
colors: {
  custom: {
    50: '#b76db6',
    500: '#942897',
    950: '#000000',
  },
}
SCSS
$custom: #942897;
$custom-light: #b76db6;
$custom-dark: #000000;
JSON
{
  "hex": "#942897",
  "rgb": {
    "r": 148,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 298.378,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48993,
    "c": 0.19024,
    "h": 326.8
  },
  "luminance": 0.10048
}

Semantic roles & 50–950 ramp

primary
#942897
secondary
#62BC5F
accent
#E1464B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #942897

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

Preview Lab → · Contrast checker → · Palette generator →

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