#902A8D#902A8D

#902A8D is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.0% C 0.178 H 329.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#902A8D
RGBrgb(144, 42, 141)
HSLhsl(302, 55%, 36%)
HSVhsv(302, 71%, 56%)
CMYKcmyk(0%, 70.8%, 2.1%, 43.5%)
CIE-LABlab(36.95, 54.25, -32.99)
CIE-LCHlch(36.95, 63.49, 328.69°)
OKLaboklab(47.98% 0.1527 -0.0911)
OKLCHoklch(47.98% 0.178 329.2)
XYZxyz(17.1371, 9.5096, 26.1271)
Luminance0.0951 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#902A8D #2A902D
analogous
#602A90 #902A8D #902A5A
triadic
#902A8D #8D902A #2A8D90
tetradic
#902A8D #90602A #2A902D #2A5A90
square
#902A8D #90602A #2A902D #2A5A90
split-complementary
#902A8D #5A902A #2A9060
monochromatic
#310E30 #611C5F #902A8D #BF38BB #D163CE

Accessibility & contrast

On white

7.24
#902A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#902A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #902A8D
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##902A8D#FFFFFF#000000##FFFFFF
##902A8D1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4E90
Deuteranopia (green-blind)
#465C8A
Tritanopia (blue-blind)
#953858
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #902a8d;
/* rgb */ color: rgb(144, 42, 141);
/* oklch */ color: oklch(48.0% 0.178 329.2);
Tailwind
colors: {
  custom: {
    50: '#b46daf',
    500: '#902a8d',
    950: '#000000',
  },
}
SCSS
$custom: #902a8d;
$custom-light: #b46daf;
$custom-dark: #000000;
JSON
{
  "hex": "#902a8d",
  "rgb": {
    "r": 144,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 301.765,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47975,
    "c": 0.17778,
    "h": 329.2
  },
  "luminance": 0.09508
}

Semantic roles & 50–950 ramp

primary
#902A8D
secondary
#5EB761
accent
#DE4E4A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #902A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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