#9742B2#9742B2

#9742B2 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 53.8% C 0.182 H 317.2°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#9742B2
RGBrgb(151, 66, 178)
HSLhsl(286, 46%, 48%)
HSVhsv(286, 63%, 70%)
CMYKcmyk(15.2%, 62.9%, 0%, 30.2%)
CIE-LABlab(43.79, 52.72, -44.28)
CIE-LCHlch(43.79, 68.85, 319.97°)
OKLaboklab(53.81% 0.1337 -0.124)
OKLCHoklch(53.81% 0.182 317.2)
XYZxyz(22.7454, 13.6910, 43.5553)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742B2 #5DB242
analogous
#5F42B2 #9742B2 #B24295
triadic
#9742B2 #B29742 #42B297
tetradic
#9742B2 #B25F42 #5DB242 #4295B2
square
#9742B2 #B25F42 #5DB242 #4295B2
split-complementary
#9742B2 #95B242 #42B25F
monochromatic
#4B2159 #713185 #9742B2 #B16AC8 #C896D8

Accessibility & contrast

On white

5.62
#9742B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#9742B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742B2
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742B2#FFFFFF#000000##FFFFFF
##9742B21.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E62B5
Deuteranopia (green-blind)
#456AAF
Tritanopia (blue-blind)
#965674
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9742b2;
/* rgb */ color: rgb(151, 66, 178);
/* oklch */ color: oklch(53.8% 0.182 317.2);
Tailwind
colors: {
  custom: {
    50: '#b97cc9',
    500: '#9742b2',
    950: '#000000',
  },
}
SCSS
$custom: #9742b2;
$custom-light: #b97cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9742b2",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 285.536,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53808,
    "c": 0.18229,
    "h": 317.2
  },
  "luminance": 0.1369
}

Semantic roles & 50–950 ramp

primary
#9742B2
secondary
#99C48C
accent
#D65272
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9742B2

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

Preview Lab → · Contrast checker → · Palette generator →

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