#9B2FD8#9B2FD8

#9B2FD8 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 55.0% C 0.241 H 309.4°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9B2FD8
RGBrgb(155, 47, 216)
HSLhsl(278, 68%, 52%)
HSVhsv(278, 78%, 85%)
CMYKcmyk(28.2%, 78.2%, 0%, 15.3%)
CIE-LABlab(44.18, 69.01, -65.71)
CIE-LCHlch(44.18, 95.28, 316.40°)
OKLaboklab(55% 0.1533 -0.1866)
OKLCHoklch(55% 0.241 309.4)
XYZxyz(26.9262, 13.9600, 66.2285)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2FD8 #6CD82F
analogous
#472FD8 #9B2FD8 #D82FC1
triadic
#9B2FD8 #D89B2F #2FD89B
tetradic
#9B2FD8 #D8472F #6CD82F #2FC1D8
square
#9B2FD8 #D8472F #6CD82F #2FC1D8
split-complementary
#9B2FD8 #C1D82F #2FD847
monochromatic
#541676 #7820AA #9B2FD8 #B463E2 #CD96EB

Accessibility & contrast

On white

5.54
#9B2FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9B2FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2FD8
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2FD8#FFFFFF#000000##FFFFFF
##9B2FD81.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)
#0064DD
Deuteranopia (green-blind)
#006AD5
Tritanopia (blue-blind)
#925A84
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9b2fd8;
/* rgb */ color: rgb(155, 47, 216);
/* oklch */ color: oklch(55.0% 0.241 309.4);
Tailwind
colors: {
  custom: {
    50: '#be74e5',
    500: '#9b2fd8',
    950: '#000000',
  },
}
SCSS
$custom: #9b2fd8;
$custom-light: #be74e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2fd8",
  "rgb": {
    "r": 155,
    "g": 47,
    "b": 216
  },
  "hsl": {
    "h": 278.343,
    "s": 68.421,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55002,
    "c": 0.24145,
    "h": 309.4
  },
  "luminance": 0.13959
}

Semantic roles & 50–950 ramp

primary
#9B2FD8
secondary
#A7D78C
accent
#EB3D7C
background
#FCF7FE
surface
#F8EDFC
border
#D1C8D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9B2FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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