#98229B#98229B

#98229B is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.4% C 0.201 H 327.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#98229B
RGBrgb(152, 34, 155)
HSLhsl(299, 64%, 37%)
HSVhsv(299, 78%, 61%)
CMYKcmyk(1.9%, 78.1%, 0%, 39.2%)
CIE-LABlab(38.18, 61.06, -39.49)
CIE-LCHlch(38.18, 72.72, 327.11°)
OKLaboklab(49.38% 0.1689 -0.1097)
OKLCHoklch(49.38% 0.201 327)
XYZxyz(19.4370, 10.1874, 31.9466)
Luminance0.1019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98229B #259B22
analogous
#5B229B #98229B #9B2262
triadic
#98229B #9B9822 #229B98
tetradic
#98229B #9B5B22 #259B22 #22629B
square
#98229B #9B5B22 #259B22 #22629B
split-complementary
#98229B #629B22 #229B5B
monochromatic
#360C37 #671769 #98229B #C92DCD #D85CDB

Accessibility & contrast

On white

6.91
#98229B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#98229B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98229B
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98229B#FFFFFF#000000##FFFFFF
##98229B1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#425F98
Tritanopia (blue-blind)
#9C375E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #98229b;
/* rgb */ color: rgb(152, 34, 155);
/* oklch */ color: oklch(49.4% 0.201 327.0);
Tailwind
colors: {
  custom: {
    50: '#ba6cb9',
    500: '#98229b',
    950: '#000000',
  },
}
SCSS
$custom: #98229b;
$custom-light: #ba6cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#98229b",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 298.512,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.49375,
    "c": 0.20144,
    "h": 327
  },
  "luminance": 0.10186
}

Semantic roles & 50–950 ramp

primary
#98229B
secondary
#5CC059
accent
#E74145
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #98229B

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

Preview Lab → · Contrast checker → · Palette generator →

#98229B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva