#9742D2#9742D2

#9742D2 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.214 H 307.9°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9742D2
RGBrgb(151, 66, 210)
HSLhsl(275, 62%, 54%)
HSVhsv(275, 69%, 82%)
CMYKcmyk(28.1%, 68.6%, 0%, 17.6%)
CIE-LABlab(45.81, 59.56, -59.64)
CIE-LCHlch(45.81, 84.29, 314.96°)
OKLaboklab(55.91% 0.1317 -0.169)
OKLCHoklch(55.91% 0.214 307.9)
XYZxyz(26.3412, 15.1293, 62.4929)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742D2 #7DD242
analogous
#4F42D2 #9742D2 #D242C5
triadic
#9742D2 #D29742 #42D297
tetradic
#9742D2 #D24F42 #7DD242 #42C5D2
square
#9742D2 #D24F42 #7DD242 #42C5D2
split-complementary
#9742D2 #C5D242 #42D24F
monochromatic
#551E7C #7729AD #9742D2 #B273DE #CDA5EA

Accessibility & contrast

On white

5.22
#9742D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9742D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742D2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742D2#FFFFFF#000000##FFFFFF
##9742D21.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#1F6DCF
Tritanopia (blue-blind)
#8E6285
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9742d2;
/* rgb */ color: rgb(151, 66, 210);
/* oklch */ color: oklch(55.9% 0.214 307.9);
Tailwind
colors: {
  custom: {
    50: '#ba7de1',
    500: '#9742d2',
    950: '#000000',
  },
}
SCSS
$custom: #9742d2;
$custom-light: #ba7de1;
$custom-dark: #000000;
JSON
{
  "hex": "#9742d2",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 275.417,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55911,
    "c": 0.21423,
    "h": 307.9
  },
  "luminance": 0.15129
}

Semantic roles & 50–950 ramp

primary
#9742D2
secondary
#B2D799
accent
#E54385
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9742D2

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

Preview Lab → · Contrast checker → · Palette generator →

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