#9A238A#9A238A

#9A238A is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.189 H 334.3°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#9A238A
RGBrgb(154, 35, 138)
HSLhsl(308, 63%, 37%)
HSVhsv(308, 77%, 60%)
CMYKcmyk(0%, 77.3%, 10.4%, 39.6%)
CIE-LABlab(37.68, 58.47, -29.88)
CIE-LCHlch(37.68, 65.67, 332.93°)
OKLaboklab(48.78% 0.17 -0.0819)
OKLCHoklch(48.78% 0.189 334.3)
XYZxyz(18.5151, 9.9087, 24.9773)
Luminance0.0991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A238A #239A33
analogous
#6F239A #9A238A #9A234F
triadic
#9A238A #8A9A23 #238A9A
tetradic
#9A238A #9A6F23 #239A33 #234F9A
square
#9A238A #9A6F23 #239A33 #234F9A
split-complementary
#9A238A #4F9A23 #239A6F
monochromatic
#360C31 #68185D #9A238A #CC2EB7 #DA5DC9

Accessibility & contrast

On white

7.04
#9A238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9A238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A238A
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A238A#FFFFFF#000000##FFFFFF
##9A238A1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214E8D
Deuteranopia (green-blind)
#4E5F87
Tritanopia (blue-blind)
#A22E55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9a238a;
/* rgb */ color: rgb(154, 35, 138);
/* oklch */ color: oklch(48.8% 0.189 334.3);
Tailwind
colors: {
  custom: {
    50: '#bb6cac',
    500: '#9a238a',
    950: '#000000',
  },
}
SCSS
$custom: #9a238a;
$custom-light: #bb6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#9a238a",
  "rgb": {
    "r": 154,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 308.067,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48778,
    "c": 0.18871,
    "h": 334.3
  },
  "luminance": 0.09907
}

Semantic roles & 50–950 ramp

primary
#9A238A
secondary
#5ABF67
accent
#E65842
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9A238A

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

Preview Lab → · Contrast checker → · Palette generator →

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