#9738B2#9738B2

#9738B2 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.7% C 0.196 H 317.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9738B2
RGBrgb(151, 56, 178)
HSLhsl(287, 52%, 46%)
HSVhsv(287, 69%, 70%)
CMYKcmyk(15.2%, 68.5%, 0%, 30.2%)
CIE-LABlab(42.19, 57.16, -46.84)
CIE-LCHlch(42.19, 73.90, 320.67°)
OKLaboklab(52.66% 0.1452 -0.1314)
OKLCHoklch(52.66% 0.196 317.9)
XYZxyz(22.2114, 12.6230, 43.3773)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9738B2 #53B238
analogous
#5A38B2 #9738B2 #B23890
triadic
#9738B2 #B29738 #38B297
tetradic
#9738B2 #B25A38 #53B238 #3890B2
square
#9738B2 #B25A38 #53B238 #3890B2
split-complementary
#9738B2 #90B238 #38B25A
monochromatic
#481B55 #702983 #9738B2 #B35CCC #C98ADA

Accessibility & contrast

On white

5.96
#9738B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9738B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9738B2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9738B2#FFFFFF#000000##FFFFFF
##9738B21.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#3D67AF
Tritanopia (blue-blind)
#964F71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9738b2;
/* rgb */ color: rgb(151, 56, 178);
/* oklch */ color: oklch(52.7% 0.196 317.9);
Tailwind
colors: {
  custom: {
    50: '#b976ca',
    500: '#9738b2',
    950: '#000000',
  },
}
SCSS
$custom: #9738b2;
$custom-light: #b976ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9738b2",
  "rgb": {
    "r": 151,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 286.721,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.52658,
    "c": 0.19582,
    "h": 317.9
  },
  "luminance": 0.12622
}

Semantic roles & 50–950 ramp

primary
#9738B2
secondary
#90C581
accent
#DC4C6C
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9738B2

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

Preview Lab → · Contrast checker → · Palette generator →

#9738B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva