#9255CA#9255CA

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

Color values

HEX#9255CA
RGBrgb(146, 85, 202)
HSLhsl(271, 52%, 56%)
HSVhsv(271, 58%, 79%)
CMYKcmyk(27.7%, 57.9%, 0%, 20.8%)
CIE-LABlab(48.10, 47.29, -51.39)
CIE-LCHlch(48.10, 69.84, 312.62°)
OKLaboklab(57.27% 0.1036 -0.145)
OKLCHoklch(57.27% 0.178 305.5)
XYZxyz(25.7609, 16.8724, 57.7652)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9255CA #8DCA55
analogous
#5855CA #9255CA #CA55C8
triadic
#9255CA #CA9255 #55CA92
tetradic
#9255CA #CA5855 #8DCA55 #55C8CA
square
#9255CA #CA5855 #8DCA55 #55C8CA
split-complementary
#9255CA #C8CA55 #55CA58
monochromatic
#54277D #7336AC #9255CA #B084D9 #CEB2E7

Accessibility & contrast

On white

4.80
#9255CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#9255CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9255CA
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9255CA#FFFFFF#000000##FFFFFF
##9255CA1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2570CE
Deuteranopia (green-blind)
#3F72C7
Tritanopia (blue-blind)
#896C87
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9255ca;
/* rgb */ color: rgb(146, 85, 202);
/* oklch */ color: oklch(57.3% 0.178 305.5);
Tailwind
colors: {
  custom: {
    50: '#b587db',
    500: '#9255ca',
    950: '#000000',
  },
}
SCSS
$custom: #9255ca;
$custom-light: #b587db;
$custom-dark: #000000;
JSON
{
  "hex": "#9255ca",
  "rgb": {
    "r": 146,
    "g": 85,
    "b": 202
  },
  "hsl": {
    "h": 271.282,
    "s": 52.466,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57268,
    "c": 0.17822,
    "h": 305.5
  },
  "luminance": 0.16872
}

Semantic roles & 50–950 ramp

primary
#9255CA
secondary
#BCD5A5
accent
#DC4C91
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #9255CA

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

Preview Lab → · Contrast checker → · Palette generator →

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