#9540C2#9540C2

#9540C2 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.3% C 0.200 H 311.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9540C2
RGBrgb(149, 64, 194)
HSLhsl(279, 52%, 51%)
HSVhsv(279, 67%, 76%)
CMYKcmyk(23.2%, 67%, 0%, 23.9%)
CIE-LABlab(44.16, 56.54, -53.06)
CIE-LCHlch(44.16, 77.54, 316.82°)
OKLaboklab(54.34% 0.1328 -0.1497)
OKLCHoklch(54.34% 0.2 311.6)
XYZxyz(23.9636, 13.9520, 52.4591)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540C2 #6DC240
analogous
#5440C2 #9540C2 #C240AE
triadic
#9540C2 #C29540 #40C295
tetradic
#9540C2 #C25440 #6DC240 #40AEC2
square
#9540C2 #C25440 #6DC240 #40AEC2
split-complementary
#9540C2 #AEC240 #40C254
monochromatic
#4F2167 #723095 #9540C2 #AF6ED1 #C89DE0

Accessibility & contrast

On white

5.54
#9540C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9540C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540C2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540C2#FFFFFF#000000##FFFFFF
##9540C21.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#326ABF
Tritanopia (blue-blind)
#905B7C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9540c2;
/* rgb */ color: rgb(149, 64, 194);
/* oklch */ color: oklch(54.3% 0.200 311.6);
Tailwind
colors: {
  custom: {
    50: '#b87bd5',
    500: '#9540c2',
    950: '#000000',
  },
}
SCSS
$custom: #9540c2;
$custom-light: #b87bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#9540c2",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 279.231,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54339,
    "c": 0.20014,
    "h": 311.6
  },
  "luminance": 0.13951
}

Semantic roles & 50–950 ramp

primary
#9540C2
secondary
#A6CC92
accent
#DB4D7E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9540C2

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

Preview Lab → · Contrast checker → · Palette generator →

#9540C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva