#9255CB#9255CB

#9255CB is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.3% C 0.179 H 305.3°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9255CB
RGBrgb(146, 85, 203)
HSLhsl(271, 53%, 56%)
HSVhsv(271, 58%, 80%)
CMYKcmyk(28.1%, 58.1%, 0%, 20.4%)
CIE-LABlab(48.16, 47.53, -51.87)
CIE-LCHlch(48.16, 70.35, 312.50°)
OKLaboklab(57.33% 0.1036 -0.1464)
OKLCHoklch(57.33% 0.179 305.3)
XYZxyz(25.8797, 16.9200, 58.3908)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9255CB #8ECB55
analogous
#5755CB #9255CB #CB55C9
triadic
#9255CB #CB9255 #55CB92
tetradic
#9255CB #CB5755 #8ECB55 #55C9CB
square
#9255CB #CB5755 #8ECB55 #55C9CB
split-complementary
#9255CB #C9CB55 #55CB57
monochromatic
#54277F #7335AE #9255CB #B084D9 #CEB3E8

Accessibility & contrast

On white

4.79
#9255CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#9255CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9255CB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9255CB#FFFFFF#000000##FFFFFF
##9255CB1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2371CF
Deuteranopia (green-blind)
#3E73C8
Tritanopia (blue-blind)
#886C88
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9255cb;
/* rgb */ color: rgb(146, 85, 203);
/* oklch */ color: oklch(57.3% 0.179 305.3);
Tailwind
colors: {
  custom: {
    50: '#b587db',
    500: '#9255cb',
    950: '#000000',
  },
}
SCSS
$custom: #9255cb;
$custom-light: #b587db;
$custom-dark: #000000;
JSON
{
  "hex": "#9255cb",
  "rgb": {
    "r": 146,
    "g": 85,
    "b": 203
  },
  "hsl": {
    "h": 271.017,
    "s": 53.153,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57332,
    "c": 0.17937,
    "h": 305.3
  },
  "luminance": 0.1692
}

Semantic roles & 50–950 ramp

primary
#9255CB
secondary
#BDD6A6
accent
#DD4B91
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9255CB

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

Preview Lab → · Contrast checker → · Palette generator →

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