#902ED4#902ED4

#902ED4 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 53.2% C 0.236 H 306.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#902ED4
RGBrgb(144, 46, 212)
HSLhsl(275, 66%, 51%)
HSVhsv(275, 78%, 83%)
CMYKcmyk(32.1%, 78.3%, 0%, 16.9%)
CIE-LABlab(42.21, 66.69, -66.67)
CIE-LCHlch(42.21, 94.30, 315.01°)
OKLaboklab(53.21% 0.1403 -0.1898)
OKLCHoklch(53.21% 0.236 306.5)
XYZxyz(24.3597, 12.6370, 63.4305)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#902ED4 #72D42E
analogous
#3D2ED4 #902ED4 #D42EC5
triadic
#902ED4 #D4902E #2ED490
tetradic
#902ED4 #D43D2E #72D42E #2EC5D4
square
#902ED4 #D43D2E #72D42E #2EC5D4
split-complementary
#902ED4 #C5D42E #2ED43D
monochromatic
#4C1770 #6E22A3 #902ED4 #AB61DE #C694E9

Accessibility & contrast

On white

5.95
#902ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#902ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #902ED4
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##902ED4#FFFFFF#000000##FFFFFF
##902ED41.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D8
Deuteranopia (green-blind)
#0064D1
Tritanopia (blue-blind)
#845981
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #902ed4;
/* rgb */ color: rgb(144, 46, 212);
/* oklch */ color: oklch(53.2% 0.236 306.5);
Tailwind
colors: {
  custom: {
    50: '#b772e2',
    500: '#902ed4',
    950: '#000000',
  },
}
SCSS
$custom: #902ed4;
$custom-light: #b772e2;
$custom-dark: #000000;
JSON
{
  "hex": "#902ed4",
  "rgb": {
    "r": 144,
    "g": 46,
    "b": 212
  },
  "hsl": {
    "h": 275.422,
    "s": 65.873,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53213,
    "c": 0.23601,
    "h": 306.5
  },
  "luminance": 0.12637
}

Semantic roles & 50–950 ramp

primary
#902ED4
secondary
#A8D48A
accent
#E93F85
background
#FBF7FE
surface
#F7EDFC
border
#D0C8D5
text
#120915
muted
#817B84

Preview Lab

Preview with #902ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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