#902198#902198

#902198 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.9% C 0.196 H 325.0°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#902198
RGBrgb(144, 33, 152)
HSLhsl(296, 64%, 36%)
HSVhsv(296, 78%, 60%)
CMYKcmyk(5.3%, 78.3%, 0%, 40.4%)
CIE-LABlab(36.53, 59.18, -40.38)
CIE-LCHlch(36.53, 71.65, 325.69°)
OKLaboklab(47.88% 0.161 -0.1125)
OKLCHoklch(47.88% 0.196 325)
XYZxyz(17.7125, 9.2852, 30.5590)
Luminance0.0928 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#902198 #299821
analogous
#552198 #902198 #982165
triadic
#902198 #989021 #219890
tetradic
#902198 #985521 #299821 #216598
square
#902198 #985521 #299821 #216598
split-complementary
#902198 #659821 #219855
monochromatic
#310B33 #601666 #902198 #C02CCA #D259DB

Accessibility & contrast

On white

7.35
#902198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#902198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #902198
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##902198#FFFFFF#000000##FFFFFF
##9021981.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#3B5A95
Tritanopia (blue-blind)
#93375C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #902198;
/* rgb */ color: rgb(144, 33, 152);
/* oklch */ color: oklch(47.9% 0.196 325.0);
Tailwind
colors: {
  custom: {
    50: '#b46ab7',
    500: '#902198',
    950: '#000000',
  },
}
SCSS
$custom: #902198;
$custom-light: #b46ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#902198",
  "rgb": {
    "r": 144,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 295.966,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47883,
    "c": 0.19644,
    "h": 325
  },
  "luminance": 0.09284
}

Semantic roles & 50–950 ramp

primary
#902198
secondary
#5DBF56
accent
#E7404C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#120711
muted
#817A80

Preview Lab

Preview with #902198

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

Preview Lab → · Contrast checker → · Palette generator →

#902198 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva