#902EC2#902EC2

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

Color values

HEX#902EC2
RGBrgb(144, 46, 194)
HSLhsl(280, 62%, 47%)
HSVhsv(280, 76%, 76%)
CMYKcmyk(25.8%, 76.3%, 0%, 23.9%)
CIE-LABlab(40.86, 62.89, -58.42)
CIE-LCHlch(40.86, 85.84, 317.11°)
OKLaboklab(51.85% 0.1442 -0.1655)
OKLCHoklch(51.85% 0.22 311.1)
XYZxyz(22.2143, 11.7789, 52.1318)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#902EC2 #60C22E
analogous
#462EC2 #902EC2 #C22EAA
triadic
#902EC2 #C2902E #2EC290
tetradic
#902EC2 #C2462E #60C22E #2EAAC2
square
#902EC2 #C2462E #60C22E #2EAAC2
split-complementary
#902EC2 #AAC22E #2EC246
monochromatic
#47175F #6B2291 #902EC2 #AB56D7 #C488E3

Accessibility & contrast

On white

6.26
#902EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#902EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #902EC2
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##902EC2#FFFFFF#000000##FFFFFF
##902EC21.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #902ec2;
/* rgb */ color: rgb(144, 46, 194);
/* oklch */ color: oklch(51.8% 0.220 311.1);
Tailwind
colors: {
  custom: {
    50: '#b571d5',
    500: '#902ec2',
    950: '#000000',
  },
}
SCSS
$custom: #902ec2;
$custom-light: #b571d5;
$custom-dark: #000000;
JSON
{
  "hex": "#902ec2",
  "rgb": {
    "r": 144,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 279.73,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51845,
    "c": 0.21954,
    "h": 311.1
  },
  "luminance": 0.11778
}

Semantic roles & 50–950 ramp

primary
#902EC2
secondary
#99CC7F
accent
#E5437A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #902EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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