#9C2298#9C2298

#9C2298 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.8% C 0.201 H 329.6°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#9C2298
RGBrgb(156, 34, 152)
HSLhsl(302, 64%, 37%)
HSVhsv(302, 78%, 61%)
CMYKcmyk(0%, 78.2%, 2.6%, 38.8%)
CIE-LABlab(38.69, 61.41, -36.81)
CIE-LCHlch(38.69, 71.60, 329.06°)
OKLaboklab(49.82% 0.1733 -0.1018)
OKLCHoklch(49.82% 0.201 329.6)
XYZxyz(19.9497, 10.4805, 30.6719)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2298 #229C26
analogous
#63229C #9C2298 #9C225B
triadic
#9C2298 #989C22 #22989C
tetradic
#9C2298 #9C6322 #229C26 #225B9C
square
#9C2298 #9C6322 #229C26 #225B9C
split-complementary
#9C2298 #5B9C22 #229C63
monochromatic
#380C36 #6A1767 #9C2298 #CE2DC9 #DC5DD7

Accessibility & contrast

On white

6.78
#9C2298 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9C2298 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2298
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2298#FFFFFF#000000##FFFFFF
##9C22981.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A519B
Deuteranopia (green-blind)
#486195
Tritanopia (blue-blind)
#A2355C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9c2298;
/* rgb */ color: rgb(156, 34, 152);
/* oklch */ color: oklch(49.8% 0.201 329.6);
Tailwind
colors: {
  custom: {
    50: '#bd6cb7',
    500: '#9c2298',
    950: '#000000',
  },
}
SCSS
$custom: #9c2298;
$custom-light: #bd6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2298",
  "rgb": {
    "r": 156,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 301.967,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49817,
    "c": 0.20102,
    "h": 329.6
  },
  "luminance": 0.10479
}

Semantic roles & 50–950 ramp

primary
#9C2298
secondary
#5AC05D
accent
#E74641
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9C2298

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

Preview Lab → · Contrast checker → · Palette generator →

#9C2298 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva