#902A8F#902A8F

#902A8F is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.1% C 0.179 H 328.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#902A8F
RGBrgb(144, 42, 143)
HSLhsl(301, 55%, 36%)
HSVhsv(301, 71%, 56%)
CMYKcmyk(0%, 70.8%, 0.7%, 43.5%)
CIE-LABlab(37.06, 54.59, -34.04)
CIE-LCHlch(37.06, 64.33, 328.05°)
OKLaboklab(48.09% 0.1527 -0.0942)
OKLCHoklch(48.09% 0.179 328.3)
XYZxyz(17.2873, 9.5696, 26.9179)
Luminance0.0957 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#902A8F #2A902B
analogous
#5E2A90 #902A8F #902A5C
triadic
#902A8F #8F902A #2A8F90
tetradic
#902A8F #905E2A #2A902B #2A5C90
square
#902A8F #905E2A #2A902B #2A5C90
split-complementary
#902A8F #5C902A #2A905E
monochromatic
#310E31 #611C60 #902A8F #BF38BE #D163D0

Accessibility & contrast

On white

7.21
#902A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#902A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #902A8F
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##902A8F#FFFFFF#000000##FFFFFF
##902A8F1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4F92
Deuteranopia (green-blind)
#455C8C
Tritanopia (blue-blind)
#953859
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #902a8f;
/* rgb */ color: rgb(144, 42, 143);
/* oklch */ color: oklch(48.1% 0.179 328.3);
Tailwind
colors: {
  custom: {
    50: '#b46db0',
    500: '#902a8f',
    950: '#000000',
  },
}
SCSS
$custom: #902a8f;
$custom-light: #b46db0;
$custom-dark: #000000;
JSON
{
  "hex": "#902a8f",
  "rgb": {
    "r": 144,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 300.588,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48091,
    "c": 0.1794,
    "h": 328.3
  },
  "luminance": 0.09568
}

Semantic roles & 50–950 ramp

primary
#902A8F
secondary
#5EB75F
accent
#DE4B4A
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110810
muted
#807B7F

Preview Lab

Preview with #902A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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