#942498#942498

#942498 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.195 H 326.5°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#942498
RGBrgb(148, 36, 152)
HSLhsl(298, 62%, 37%)
HSVhsv(298, 76%, 60%)
CMYKcmyk(2.6%, 76.3%, 0%, 40.4%)
CIE-LABlab(37.53, 59.10, -38.74)
CIE-LCHlch(37.53, 70.67, 326.75°)
OKLaboklab(48.73% 0.1629 -0.1077)
OKLCHoklch(48.73% 0.195 326.5)
XYZxyz(18.5108, 9.8259, 30.6213)
Luminance0.0983 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942498 #289824
analogous
#5A2498 #942498 #982462
triadic
#942498 #989424 #249894
tetradic
#942498 #985A24 #289824 #246298
square
#942498 #985A24 #289824 #246298
split-complementary
#942498 #629824 #24985A
monochromatic
#340D35 #641867 #942498 #C430C9 #D55ED9

Accessibility & contrast

On white

7.08
#942498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#942498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #942498
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942498#FFFFFF#000000##FFFFFF
##9424981.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#415D95
Tritanopia (blue-blind)
#98385D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #942498;
/* rgb */ color: rgb(148, 36, 152);
/* oklch */ color: oklch(48.7% 0.195 326.5);
Tailwind
colors: {
  custom: {
    50: '#b76cb7',
    500: '#942498',
    950: '#000000',
  },
}
SCSS
$custom: #942498;
$custom-light: #b76cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#942498",
  "rgb": {
    "r": 148,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 297.931,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48725,
    "c": 0.19529,
    "h": 326.5
  },
  "luminance": 0.09825
}

Semantic roles & 50–950 ramp

primary
#942498
secondary
#5EBE5A
accent
#E54349
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #942498

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

Preview Lab → · Contrast checker → · Palette generator →

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