#9228CA#9228CA

#9228CA is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 52.2% C 0.233 H 310.1°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9228CA
RGBrgb(146, 40, 202)
HSLhsl(279, 67%, 47%)
HSVhsv(279, 80%, 79%)
CMYKcmyk(27.7%, 80.2%, 0%, 20.8%)
CIE-LABlab(41.05, 66.91, -62.77)
CIE-LCHlch(41.05, 91.75, 316.83°)
OKLaboklab(52.22% 0.15 -0.1782)
OKLCHoklch(52.22% 0.233 310.1)
XYZxyz(23.2714, 11.8934, 56.9354)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9228CA #60CA28
analogous
#4128CA #9228CA #CA28B1
triadic
#9228CA #CA9228 #28CA92
tetradic
#9228CA #CA4128 #60CA28 #28B1CA
square
#9228CA #CA4128 #60CA28 #28B1CA
split-complementary
#9228CA #B1CA28 #28CA41
monochromatic
#481464 #6D1E97 #9228CA #AD52DD #C585E7

Accessibility & contrast

On white

6.22
#9228CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9228CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9228CA
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9228CA#FFFFFF#000000##FFFFFF
##9228CA1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0062C7
Tritanopia (blue-blind)
#8A527A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9228ca;
/* rgb */ color: rgb(146, 40, 202);
/* oklch */ color: oklch(52.2% 0.233 310.1);
Tailwind
colors: {
  custom: {
    50: '#b870db',
    500: '#9228ca',
    950: '#000000',
  },
}
SCSS
$custom: #9228ca;
$custom-light: #b870db;
$custom-dark: #000000;
JSON
{
  "hex": "#9228ca",
  "rgb": {
    "r": 146,
    "g": 40,
    "b": 202
  },
  "hsl": {
    "h": 279.259,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.52219,
    "c": 0.23289,
    "h": 310.1
  },
  "luminance": 0.11893
}

Semantic roles & 50–950 ramp

primary
#9228CA
secondary
#9AD07E
accent
#EA3E79
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #9228CA

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

Preview Lab → · Contrast checker → · Palette generator →

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