#9228DE#9228DE

#9228DE is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.8% C 0.251 H 305.3°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9228DE
RGBrgb(146, 40, 222)
HSLhsl(275, 73%, 51%)
HSVhsv(275, 82%, 87%)
CMYKcmyk(34.2%, 82%, 0%, 12.9%)
CIE-LABlab(42.62, 71.06, -71.74)
CIE-LCHlch(42.62, 100.97, 314.73°)
OKLaboklab(53.8% 0.1447 -0.2045)
OKLCHoklch(53.8% 0.251 305.3)
XYZxyz(25.7947, 12.9027, 70.2246)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9228DE #74DE28
analogous
#3728DE #9228DE #DE28CF
triadic
#9228DE #DE9228 #28DE92
tetradic
#9228DE #DE3728 #74DE28 #28CFDE
square
#9228DE #DE3728 #74DE28 #28CFDE
split-complementary
#9228DE #CFDE28 #28DE37
monochromatic
#4E1379 #711BAE #9228DE #AD5DE6 #C892EE

Accessibility & contrast

On white

5.86
#9228DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#9228DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9228DE
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9228DE#FFFFFF#000000##FFFFFF
##9228DE1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E3
Deuteranopia (green-blind)
#0065DB
Tritanopia (blue-blind)
#835B86
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9228de;
/* rgb */ color: rgb(146, 40, 222);
/* oklch */ color: oklch(53.8% 0.251 305.3);
Tailwind
colors: {
  custom: {
    50: '#b971e9',
    500: '#9228de',
    950: '#000000',
  },
}
SCSS
$custom: #9228de;
$custom-light: #b971e9;
$custom-dark: #000000;
JSON
{
  "hex": "#9228de",
  "rgb": {
    "r": 146,
    "g": 40,
    "b": 222
  },
  "hsl": {
    "h": 274.945,
    "s": 73.387,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53799,
    "c": 0.25051,
    "h": 305.3
  },
  "luminance": 0.12903
}

Semantic roles & 50–950 ramp

primary
#9228DE
secondary
#AAD989
accent
#F03885
background
#FCF7FE
surface
#F8EDFD
border
#D1C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #9228DE

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

Preview Lab → · Contrast checker → · Palette generator →

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