#9B2ED3#9B2ED3

#9B2ED3 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.5% C 0.238 H 310.7°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9B2ED3
RGBrgb(155, 46, 211)
HSLhsl(280, 65%, 50%)
HSVhsv(280, 78%, 83%)
CMYKcmyk(26.5%, 78.2%, 0%, 17.3%)
CIE-LABlab(43.69, 68.32, -63.62)
CIE-LCHlch(43.69, 93.35, 317.04°)
OKLaboklab(54.55% 0.1551 -0.1804)
OKLCHoklch(54.55% 0.238 310.7)
XYZxyz(26.2501, 13.6263, 62.8627)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2ED3 #66D32E
analogous
#482ED3 #9B2ED3 #D32EB9
triadic
#9B2ED3 #D39B2E #2ED39B
tetradic
#9B2ED3 #D3482E #66D32E #2EB9D3
square
#9B2ED3 #D3482E #66D32E #2EB9D3
split-complementary
#9B2ED3 #B9D32E #2ED348
monochromatic
#51176F #7622A2 #9B2ED3 #B361DE #CB93E8

Accessibility & contrast

On white

5.64
#9B2ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9B2ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2ED3
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2ED3#FFFFFF#000000##FFFFFF
##9B2ED31.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#0069D0
Tritanopia (blue-blind)
#935781
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9b2ed3;
/* rgb */ color: rgb(155, 46, 211);
/* oklch */ color: oklch(54.5% 0.238 310.7);
Tailwind
colors: {
  custom: {
    50: '#be74e1',
    500: '#9b2ed3',
    950: '#000000',
  },
}
SCSS
$custom: #9b2ed3;
$custom-light: #be74e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2ed3",
  "rgb": {
    "r": 155,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 279.636,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54548,
    "c": 0.23794,
    "h": 310.7
  },
  "luminance": 0.13626
}

Semantic roles & 50–950 ramp

primary
#9B2ED3
secondary
#A3D38A
accent
#E84079
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B2ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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