#9255B2#9255B2

#9255B2 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.8% C 0.151 H 312.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9255B2
RGBrgb(146, 85, 178)
HSLhsl(279, 38%, 52%)
HSVhsv(279, 52%, 70%)
CMYKcmyk(18%, 52.2%, 0%, 30.2%)
CIE-LABlab(46.74, 41.76, -39.63)
CIE-LCHlch(46.74, 57.57, 316.50°)
OKLaboklab(55.83% 0.1024 -0.1106)
OKLCHoklch(55.83% 0.151 312.8)
XYZxyz(23.1371, 15.8229, 43.9461)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9255B2 #75B255
analogous
#6455B2 #9255B2 #B255A4
triadic
#9255B2 #B29255 #55B292
tetradic
#9255B2 #B26455 #75B255 #55A4B2
square
#9255B2 #B26455 #75B255 #55A4B2
split-complementary
#9255B2 #A4B255 #55B264
monochromatic
#4F2C61 #713F8B #9255B2 #AD7FC5 #C8A9D8

Accessibility & contrast

On white

5.04
#9255B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9255B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9255B2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9255B2#FFFFFF#000000##FFFFFF
##9255B21.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6CB5
Deuteranopia (green-blind)
#5170B0
Tritanopia (blue-blind)
#8F647B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9255b2;
/* rgb */ color: rgb(146, 85, 178);
/* oklch */ color: oklch(55.8% 0.151 312.8);
Tailwind
colors: {
  custom: {
    50: '#b487c9',
    500: '#9255b2',
    950: '#000000',
  },
}
SCSS
$custom: #9255b2;
$custom-light: #b487c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9255b2",
  "rgb": {
    "r": 146,
    "g": 85,
    "b": 178
  },
  "hsl": {
    "h": 279.355,
    "s": 37.652,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55831,
    "c": 0.15073,
    "h": 312.8
  },
  "luminance": 0.15822
}

Semantic roles & 50–950 ramp

primary
#9255B2
secondary
#ABC69D
accent
#CE5A82
background
#FBF8FC
surface
#F6F0F8
border
#D0CBD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #9255B2

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

Preview Lab → · Contrast checker → · Palette generator →

#9255B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva