#9742D6#9742D6

#9742D6 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.2% C 0.218 H 306.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9742D6
RGBrgb(151, 66, 214)
HSLhsl(274, 64%, 55%)
HSVhsv(274, 69%, 84%)
CMYKcmyk(29.4%, 69.2%, 0%, 16.1%)
CIE-LABlab(46.08, 60.45, -61.49)
CIE-LCHlch(46.08, 86.23, 314.51°)
OKLaboklab(56.19% 0.1312 -0.1744)
OKLCHoklch(56.19% 0.218 306.9)
XYZxyz(26.8457, 15.3311, 65.1502)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9742D6 #81D642
analogous
#4D42D6 #9742D6 #D642CB
triadic
#9742D6 #D69742 #42D697
tetradic
#9742D6 #D64D42 #81D642 #42CBD6
square
#9742D6 #D64D42 #81D642 #42CBD6
split-complementary
#9742D6 #CBD642 #42D64D
monochromatic
#561C82 #7827B4 #9742D6 #B374E1 #CEA7EC

Accessibility & contrast

On white

5.16
#9742D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9742D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9742D6
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9742D6#FFFFFF#000000##FFFFFF
##9742D61.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADA
Deuteranopia (green-blind)
#156ED3
Tritanopia (blue-blind)
#8C6387
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9742d6;
/* rgb */ color: rgb(151, 66, 214);
/* oklch */ color: oklch(56.2% 0.218 306.9);
Tailwind
colors: {
  custom: {
    50: '#ba7de3',
    500: '#9742d6',
    950: '#000000',
  },
}
SCSS
$custom: #9742d6;
$custom-light: #ba7de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9742d6",
  "rgb": {
    "r": 151,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 274.459,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56193,
    "c": 0.21825,
    "h": 306.9
  },
  "luminance": 0.15331
}

Semantic roles & 50–950 ramp

primary
#9742D6
secondary
#B5D99B
accent
#E74087
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9742D6

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

Preview Lab → · Contrast checker → · Palette generator →

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