#9A238E#9A238E

#9A238E is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.192 H 332.7°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9A238E
RGBrgb(154, 35, 142)
HSLhsl(306, 63%, 37%)
HSVhsv(306, 77%, 60%)
CMYKcmyk(0%, 77.3%, 7.8%, 39.6%)
CIE-LABlab(37.89, 59.09, -32.00)
CIE-LCHlch(37.89, 67.20, 331.56°)
OKLaboklab(49% 0.1702 -0.088)
OKLCHoklch(49% 0.192 332.7)
XYZxyz(18.8100, 10.0267, 26.5306)
Luminance0.1003 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A238E #239A2F
analogous
#6A239A #9A238E #9A2353
triadic
#9A238E #8E9A23 #238E9A
tetradic
#9A238E #9A6A23 #239A2F #23539A
square
#9A238E #9A6A23 #239A2F #23539A
split-complementary
#9A238E #539A23 #239A6A
monochromatic
#360C32 #681860 #9A238E #CC2EBC #DA5DCE

Accessibility & contrast

On white

6.99
#9A238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9A238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A238E
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A238E#FFFFFF#000000##FFFFFF
##9A238E1.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4E91
Deuteranopia (green-blind)
#4C5F8B
Tritanopia (blue-blind)
#A13157
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9a238e;
/* rgb */ color: rgb(154, 35, 142);
/* oklch */ color: oklch(49.0% 0.192 332.7);
Tailwind
colors: {
  custom: {
    50: '#bb6caf',
    500: '#9a238e',
    950: '#000000',
  },
}
SCSS
$custom: #9a238e;
$custom-light: #bb6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a238e",
  "rgb": {
    "r": 154,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 306.05,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48999,
    "c": 0.19163,
    "h": 332.7
  },
  "luminance": 0.10025
}

Semantic roles & 50–950 ramp

primary
#9A238E
secondary
#5ABF64
accent
#E65242
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9A238E

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

Preview Lab → · Contrast checker → · Palette generator →

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