#902DC2#902DC2

#902DC2 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.8% C 0.221 H 311.1°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#902DC2
RGBrgb(144, 45, 194)
HSLhsl(280, 62%, 47%)
HSVhsv(280, 77%, 76%)
CMYKcmyk(25.8%, 76.8%, 0%, 23.9%)
CIE-LABlab(40.74, 63.25, -58.63)
CIE-LCHlch(40.74, 86.24, 317.17°)
OKLaboklab(51.76% 0.1451 -0.1661)
OKLCHoklch(51.76% 0.221 311.1)
XYZxyz(22.1757, 11.7017, 52.1189)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#902DC2 #5FC22D
analogous
#462DC2 #902DC2 #C22DAA
triadic
#902DC2 #C2902D #2DC290
tetradic
#902DC2 #C2462D #5FC22D #2DAAC2
square
#902DC2 #C2462D #5FC22D #2DAAC2
split-complementary
#902DC2 #AAC22D #2DC246
monochromatic
#46165F #6B2190 #902DC2 #AC55D7 #C486E3

Accessibility & contrast

On white

6.29
#902DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#902DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #902DC2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##902DC2#FFFFFF#000000##FFFFFF
##902DC21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0762BF
Tritanopia (blue-blind)
#895177
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #902dc2;
/* rgb */ color: rgb(144, 45, 194);
/* oklch */ color: oklch(51.8% 0.221 311.1);
Tailwind
colors: {
  custom: {
    50: '#b571d5',
    500: '#902dc2',
    950: '#000000',
  },
}
SCSS
$custom: #902dc2;
$custom-light: #b571d5;
$custom-dark: #000000;
JSON
{
  "hex": "#902dc2",
  "rgb": {
    "r": 144,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 279.866,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51757,
    "c": 0.22055,
    "h": 311.1
  },
  "luminance": 0.11701
}

Semantic roles & 50–950 ramp

primary
#902DC2
secondary
#99CD7E
accent
#E54279
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #902DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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