#9252CD#9252CD

#9252CD is a mid, vivid violet. Relative luminance 0.166; OKLCH L 57.0% C 0.186 H 305.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#9252CD
RGBrgb(146, 82, 205)
HSLhsl(271, 55%, 56%)
HSVhsv(271, 60%, 80%)
CMYKcmyk(28.8%, 60%, 0%, 19.6%)
CIE-LABlab(47.69, 49.57, -53.77)
CIE-LCHlch(47.69, 73.13, 312.68°)
OKLaboklab(57.03% 0.1073 -0.152)
OKLCHoklch(57.03% 0.186 305.2)
XYZxyz(25.8884, 16.5535, 59.5771)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9252CD #8DCD52
analogous
#5552CD #9252CD #CD52CA
triadic
#9252CD #CD9252 #52CD92
tetradic
#9252CD #CD5552 #8DCD52 #52CACD
square
#9252CD #CD5552 #8DCD52 #52CACD
split-complementary
#9252CD #CACD52 #52CD55
monochromatic
#542580 #7333AF #9252CD #B081DB #CEB1E8

Accessibility & contrast

On white

4.87
#9252CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#9252CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9252CD
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9252CD#FFFFFF#000000##FFFFFF
##9252CD1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156FD1
Deuteranopia (green-blind)
#3871CA
Tritanopia (blue-blind)
#886B88
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9252cd;
/* rgb */ color: rgb(146, 82, 205);
/* oklch */ color: oklch(57.0% 0.186 305.2);
Tailwind
colors: {
  custom: {
    50: '#b686dd',
    500: '#9252cd',
    950: '#000000',
  },
}
SCSS
$custom: #9252cd;
$custom-light: #b686dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9252cd",
  "rgb": {
    "r": 146,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 271.22,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5703,
    "c": 0.18604,
    "h": 305.2
  },
  "luminance": 0.16553
}

Semantic roles & 50–950 ramp

primary
#9252CD
secondary
#BCD7A4
accent
#DE4991
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9252CD

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

Preview Lab → · Contrast checker → · Palette generator →

#9252CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva