#9237B1#9237B1

#9237B1 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.8% C 0.194 H 316.2°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9237B1
RGBrgb(146, 55, 177)
HSLhsl(285, 53%, 45%)
HSVhsv(285, 69%, 69%)
CMYKcmyk(17.5%, 68.9%, 0%, 30.6%)
CIE-LABlab(41.25, 56.26, -47.80)
CIE-LCHlch(41.25, 73.83, 319.65°)
OKLaboklab(51.81% 0.1402 -0.1343)
OKLCHoklch(51.81% 0.194 316.2)
XYZxyz(21.1548, 12.0185, 42.7919)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9237B1 #56B137
analogous
#5537B1 #9237B1 #B13793
triadic
#9237B1 #B19237 #37B192
tetradic
#9237B1 #B15537 #56B137 #3793B1
square
#9237B1 #B15537 #56B137 #3793B1
split-complementary
#9237B1 #93B137 #37B155
monochromatic
#451A54 #6B2882 #9237B1 #AF5ACC #C588DA

Accessibility & contrast

On white

6.17
#9237B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9237B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9237B1
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9237B1#FFFFFF#000000##FFFFFF
##9237B11.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#3764AE
Tritanopia (blue-blind)
#904F70
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9237b1;
/* rgb */ color: rgb(146, 55, 177);
/* oklch */ color: oklch(51.8% 0.194 316.2);
Tailwind
colors: {
  custom: {
    50: '#b675c9',
    500: '#9237b1',
    950: '#000000',
  },
}
SCSS
$custom: #9237b1;
$custom-light: #b675c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9237b1",
  "rgb": {
    "r": 146,
    "g": 55,
    "b": 177
  },
  "hsl": {
    "h": 284.754,
    "s": 52.586,
    "l": 45.49
  },
  "oklch": {
    "l": 0.51811,
    "c": 0.19415,
    "h": 316.2
  },
  "luminance": 0.12018
}

Semantic roles & 50–950 ramp

primary
#9237B1
secondary
#91C480
accent
#DC4C70
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9237B1

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

Preview Lab → · Contrast checker → · Palette generator →

#9237B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva