#9271DD#9271DD

#9271DD is a light, vivid violet. Relative luminance 0.231; OKLCH L 62.9% C 0.159 H 295.6°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9271DD
RGBrgb(146, 113, 221)
HSLhsl(258, 61%, 65%)
HSVhsv(258, 49%, 87%)
CMYKcmyk(33.9%, 48.9%, 0%, 13.3%)
CIE-LABlab(55.22, 36.49, -50.84)
CIE-LCHlch(55.22, 62.57, 305.67°)
OKLaboklab(62.89% 0.0686 -0.1434)
OKLCHoklch(62.89% 0.159 295.6)
XYZxyz(30.8070, 23.1412, 71.2362)
Luminance0.2314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9271DD #BCDD71
analogous
#7186DD #9271DD #C871DD
triadic
#9271DD #DD9271 #71DD92
tetradic
#9271DD #DD7186 #BCDD71 #71DDC8
square
#9271DD #DD7186 #BCDD71 #71DDC8
split-complementary
#9271DD #DDC871 #86DD71
monochromatic
#5129AB #6C40D1 #9271DD #B8A2E9 #DED4F5

Accessibility & contrast

On white

3.73
#9271DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#9271DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9271DD
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9271DD#FFFFFF#000000##000000
##9271DD1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B85E1
Deuteranopia (green-blind)
#5183DA
Tritanopia (blue-blind)
#81869D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9271dd;
/* rgb */ color: rgb(146, 113, 221);
/* oklch */ color: oklch(62.9% 0.159 295.6);
Tailwind
colors: {
  custom: {
    50: '#b59ae8',
    500: '#9271dd',
    950: '#000000',
  },
}
SCSS
$custom: #9271dd;
$custom-light: #b59ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#9271dd",
  "rgb": {
    "r": 146,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 258.333,
    "s": 61.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.62886,
    "c": 0.15898,
    "h": 295.6
  },
  "luminance": 0.23142
}

Semantic roles & 50–950 ramp

primary
#9271DD
secondary
#DCE7C3
accent
#C91C94
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #9271DD

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

Preview Lab → · Contrast checker → · Palette generator →

#9271DD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva