#9745CB#9745CB

#9745CB is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.8% C 0.203 H 309.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9745CB
RGBrgb(151, 69, 203)
HSLhsl(277, 56%, 53%)
HSVhsv(277, 66%, 80%)
CMYKcmyk(25.6%, 66%, 0%, 20.4%)
CIE-LABlab(45.84, 56.65, -55.57)
CIE-LCHlch(45.84, 79.36, 315.55°)
OKLaboklab(55.78% 0.1291 -0.157)
OKLCHoklch(55.78% 0.203 309.4)
XYZxyz(25.6680, 15.1478, 58.0600)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9745CB #79CB45
analogous
#5445CB #9745CB #CB45BC
triadic
#9745CB #CB9745 #45CB97
tetradic
#9745CB #CB5445 #79CB45 #45BCCB
square
#9745CB #CB5445 #79CB45 #45BCCB
split-complementary
#9745CB #BCCB45 #45CB54
monochromatic
#542175 #772EA5 #9745CB #B275D8 #CCA5E6

Accessibility & contrast

On white

5.21
#9745CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9745CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9745CB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9745CB#FFFFFF#000000##FFFFFF
##9745CB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#2F6EC8
Tritanopia (blue-blind)
#906182
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9745cb;
/* rgb */ color: rgb(151, 69, 203);
/* oklch */ color: oklch(55.8% 0.203 309.4);
Tailwind
colors: {
  custom: {
    50: '#ba7edc',
    500: '#9745cb',
    950: '#000000',
  },
}
SCSS
$custom: #9745cb;
$custom-light: #ba7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#9745cb",
  "rgb": {
    "r": 151,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 276.716,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55781,
    "c": 0.20331,
    "h": 309.4
  },
  "luminance": 0.15147
}

Semantic roles & 50–950 ramp

primary
#9745CB
secondary
#AFD399
accent
#E04883
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9745CB

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

Preview Lab → · Contrast checker → · Palette generator →

#9745CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva