#9B40C8#9B40C8

#9B40C8 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.5% C 0.208 H 312.3°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9B40C8
RGBrgb(155, 64, 200)
HSLhsl(280, 55%, 52%)
HSVhsv(280, 68%, 78%)
CMYKcmyk(22.5%, 68%, 0%, 21.6%)
CIE-LABlab(45.37, 59.12, -54.56)
CIE-LCHlch(45.37, 80.45, 317.30°)
OKLaboklab(55.5% 0.14 -0.1539)
OKLCHoklch(55.5% 0.208 312.3)
XYZxyz(25.7744, 14.8062, 56.1325)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B40C8 #6DC840
analogous
#5740C8 #9B40C8 #C840B1
triadic
#9B40C8 #C89B40 #40C89B
tetradic
#9B40C8 #C85740 #6DC840 #40B1C8
square
#9B40C8 #C85740 #6DC840 #40B1C8
split-complementary
#9B40C8 #B1C840 #40C857
monochromatic
#54206E #782D9D #9B40C8 #B470D6 #CD9FE3

Accessibility & contrast

On white

5.30
#9B40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9B40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B40C8
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B40C8#FFFFFF#000000##FFFFFF
##9B40C81.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#336DC5
Tritanopia (blue-blind)
#965C7F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9b40c8;
/* rgb */ color: rgb(155, 64, 200);
/* oklch */ color: oklch(55.5% 0.208 312.3);
Tailwind
colors: {
  custom: {
    50: '#bc7cd9',
    500: '#9b40c8',
    950: '#000000',
  },
}
SCSS
$custom: #9b40c8;
$custom-light: #bc7cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b40c8",
  "rgb": {
    "r": 155,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 280.147,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.55496,
    "c": 0.20807,
    "h": 312.3
  },
  "luminance": 0.14805
}

Semantic roles & 50–950 ramp

primary
#9B40C8
secondary
#A8D094
accent
#DF497B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B40C8

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

Preview Lab → · Contrast checker → · Palette generator →

#9B40C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva