#902DC6#902DC6

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

Color values

HEX#902DC6
RGBrgb(144, 45, 198)
HSLhsl(279, 63%, 48%)
HSVhsv(279, 77%, 78%)
CMYKcmyk(27.3%, 77.3%, 0%, 22.4%)
CIE-LABlab(41.03, 64.08, -60.48)
CIE-LCHlch(41.03, 88.12, 316.65°)
OKLaboklab(52.05% 0.1443 -0.1716)
OKLCHoklch(52.05% 0.224 310.1)
XYZxyz(22.6310, 11.8838, 54.5168)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#902DC6 #63C62D
analogous
#442DC6 #902DC6 #C62DAF
triadic
#902DC6 #C6902D #2DC690
tetradic
#902DC6 #C6442D #63C62D #2DAFC6
square
#902DC6 #C6442D #63C62D #2DAFC6
split-complementary
#902DC6 #AFC62D #2DC644
monochromatic
#471662 #6C2294 #902DC6 #AB57D9 #C489E4

Accessibility & contrast

On white

6.22
#902DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#902DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #902DC6
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##902DC6#FFFFFF#000000##FFFFFF
##902DC61.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)
#005DCA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#885379
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #902dc6;
/* rgb */ color: rgb(144, 45, 198);
/* oklch */ color: oklch(52.1% 0.224 310.1);
Tailwind
colors: {
  custom: {
    50: '#b671d8',
    500: '#902dc6',
    950: '#000000',
  },
}
SCSS
$custom: #902dc6;
$custom-light: #b671d8;
$custom-dark: #000000;
JSON
{
  "hex": "#902dc6",
  "rgb": {
    "r": 144,
    "g": 45,
    "b": 198
  },
  "hsl": {
    "h": 278.824,
    "s": 62.963,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52055,
    "c": 0.22418,
    "h": 310.1
  },
  "luminance": 0.11883
}

Semantic roles & 50–950 ramp

primary
#902DC6
secondary
#9CCE81
accent
#E6427C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120815
muted
#817B83

Preview Lab

Preview with #902DC6

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

Preview Lab → · Contrast checker → · Palette generator →

#902DC6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva