#9742D3#9742D3

#9742D3 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.0% C 0.215 H 307.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9742D3
RGBrgb(151, 66, 211)
HSLhsl(275, 62%, 54%)
HSVhsv(275, 69%, 83%)
CMYKcmyk(28.4%, 68.7%, 0%, 17.3%)
CIE-LABlab(45.88, 59.78, -60.10)
CIE-LCHlch(45.88, 84.77, 314.85°)
OKLaboklab(55.98% 0.1316 -0.1703)
OKLCHoklch(55.98% 0.215 307.7)
XYZxyz(26.4661, 15.1793, 63.1510)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742D3 #7ED342
analogous
#4E42D3 #9742D3 #D342C7
triadic
#9742D3 #D39742 #42D397
tetradic
#9742D3 #D34E42 #7ED342 #42C7D3
square
#9742D3 #D34E42 #7ED342 #42C7D3
split-complementary
#9742D3 #C7D342 #42D34E
monochromatic
#561D7D #7729AF #9742D3 #B274DF #CEA5EA

Accessibility & contrast

On white

5.20
#9742D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9742D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742D3
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742D3#FFFFFF#000000##FFFFFF
##9742D31.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#1D6DD0
Tritanopia (blue-blind)
#8D6286
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9742d3;
/* rgb */ color: rgb(151, 66, 211);
/* oklch */ color: oklch(56.0% 0.215 307.7);
Tailwind
colors: {
  custom: {
    50: '#ba7de1',
    500: '#9742d3',
    950: '#000000',
  },
}
SCSS
$custom: #9742d3;
$custom-light: #ba7de1;
$custom-dark: #000000;
JSON
{
  "hex": "#9742d3",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 275.172,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55981,
    "c": 0.21524,
    "h": 307.7
  },
  "luminance": 0.15179
}

Semantic roles & 50–950 ramp

primary
#9742D3
secondary
#B3D79A
accent
#E54286
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9742D3

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

Preview Lab → · Contrast checker → · Palette generator →

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