#902ED3#902ED3

#902ED3 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 53.1% C 0.235 H 306.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#902ED3
RGBrgb(144, 46, 211)
HSLhsl(276, 65%, 50%)
HSVhsv(276, 78%, 83%)
CMYKcmyk(31.8%, 78.2%, 0%, 17.3%)
CIE-LABlab(42.13, 66.48, -66.22)
CIE-LCHlch(42.13, 93.83, 315.11°)
OKLaboklab(53.14% 0.1406 -0.1884)
OKLCHoklch(53.14% 0.235 306.7)
XYZxyz(24.2339, 12.5867, 62.7682)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#902ED3 #71D32E
analogous
#3D2ED3 #902ED3 #D32EC4
triadic
#902ED3 #D3902E #2ED390
tetradic
#902ED3 #D33D2E #71D32E #2EC4D3
square
#902ED3 #D33D2E #71D32E #2EC4D3
split-complementary
#902ED3 #C4D32E #2ED33D
monochromatic
#4C176F #6E22A2 #902ED3 #AB61DE #C693E8

Accessibility & contrast

On white

5.97
#902ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#902ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #902ED3
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##902ED3#FFFFFF#000000##FFFFFF
##902ED31.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D7
Deuteranopia (green-blind)
#0064D0
Tritanopia (blue-blind)
#845981
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #902ed3;
/* rgb */ color: rgb(144, 46, 211);
/* oklch */ color: oklch(53.1% 0.235 306.7);
Tailwind
colors: {
  custom: {
    50: '#b772e2',
    500: '#902ed3',
    950: '#000000',
  },
}
SCSS
$custom: #902ed3;
$custom-light: #b772e2;
$custom-dark: #000000;
JSON
{
  "hex": "#902ed3",
  "rgb": {
    "r": 144,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 275.636,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53135,
    "c": 0.2351,
    "h": 306.7
  },
  "luminance": 0.12586
}

Semantic roles & 50–950 ramp

primary
#902ED3
secondary
#A7D38A
accent
#E84084
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #902ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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