#9257BA#9257BA

#9257BA is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.6% C 0.157 H 309.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9257BA
RGBrgb(146, 87, 186)
HSLhsl(276, 42%, 54%)
HSVhsv(276, 53%, 73%)
CMYKcmyk(21.5%, 53.2%, 0%, 27.1%)
CIE-LABlab(47.59, 42.48, -42.95)
CIE-LCHlch(47.59, 60.41, 314.68°)
OKLaboklab(56.6% 0.1003 -0.1203)
OKLCHoklch(56.6% 0.157 309.8)
XYZxyz(24.1235, 16.4730, 48.3536)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9257BA #7FBA57
analogous
#6057BA #9257BA #BA57B0
triadic
#9257BA #BA9257 #57BA92
tetradic
#9257BA #BA6057 #7FBA57 #57B0BA
square
#9257BA #BA6057 #7FBA57 #57B0BA
split-complementary
#9257BA #B0BA57 #57BA60
monochromatic
#512C6B #723E96 #9257BA #AE82CC #CAAEDE

Accessibility & contrast

On white

4.89
#9257BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#9257BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9257BA
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9257BA#FFFFFF#000000##FFFFFF
##9257BA1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6EBD
Deuteranopia (green-blind)
#4E72B8
Tritanopia (blue-blind)
#8D6880
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9257ba;
/* rgb */ color: rgb(146, 87, 186);
/* oklch */ color: oklch(56.6% 0.157 309.8);
Tailwind
colors: {
  custom: {
    50: '#b488cf',
    500: '#9257ba',
    950: '#000000',
  },
}
SCSS
$custom: #9257ba;
$custom-light: #b488cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9257ba",
  "rgb": {
    "r": 146,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 275.758,
    "s": 41.772,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56597,
    "c": 0.15665,
    "h": 309.8
  },
  "luminance": 0.16473
}

Semantic roles & 50–950 ramp

primary
#9257BA
secondary
#B2CCA1
accent
#D25688
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #9257BA

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

Preview Lab → · Contrast checker → · Palette generator →

#9257BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva