#9742D0#9742D0

#9742D0 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.212 H 308.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9742D0
RGBrgb(151, 66, 208)
HSLhsl(276, 60%, 54%)
HSVhsv(276, 68%, 82%)
CMYKcmyk(27.4%, 68.3%, 0%, 18.4%)
CIE-LABlab(45.68, 59.12, -58.71)
CIE-LCHlch(45.68, 83.32, 315.20°)
OKLaboklab(55.77% 0.1319 -0.1662)
OKLCHoklch(55.77% 0.212 308.4)
XYZxyz(26.0936, 15.0302, 61.1888)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742D0 #7BD042
analogous
#5042D0 #9742D0 #D042C2
triadic
#9742D0 #D09742 #42D097
tetradic
#9742D0 #D05042 #7BD042 #42C2D0
square
#9742D0 #D05042 #7BD042 #42C2D0
split-complementary
#9742D0 #C2D042 #42D050
monochromatic
#551E79 #772AAA #9742D0 #B273DC #CDA4E8

Accessibility & contrast

On white

5.24
#9742D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9742D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742D0
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742D0#FFFFFF#000000##FFFFFF
##9742D01.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D4
Deuteranopia (green-blind)
#236DCD
Tritanopia (blue-blind)
#8E6184
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9742d0;
/* rgb */ color: rgb(151, 66, 208);
/* oklch */ color: oklch(55.8% 0.212 308.4);
Tailwind
colors: {
  custom: {
    50: '#ba7ddf',
    500: '#9742d0',
    950: '#000000',
  },
}
SCSS
$custom: #9742d0;
$custom-light: #ba7ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#9742d0",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 275.915,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55771,
    "c": 0.21223,
    "h": 308.4
  },
  "luminance": 0.1503
}

Semantic roles & 50–950 ramp

primary
#9742D0
secondary
#B1D599
accent
#E34484
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9742D0

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

Preview Lab → · Contrast checker → · Palette generator →

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