#9242CC#9242CC

#9242CC is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.9% C 0.207 H 307.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9242CC
RGBrgb(146, 66, 204)
HSLhsl(275, 58%, 53%)
HSVhsv(275, 68%, 80%)
CMYKcmyk(28.4%, 67.6%, 0%, 20%)
CIE-LABlab(44.76, 57.19, -57.92)
CIE-LCHlch(44.76, 81.40, 314.64°)
OKLaboklab(54.89% 0.1258 -0.1641)
OKLCHoklch(54.89% 0.207 307.5)
XYZxyz(24.6991, 14.3674, 58.5871)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9242CC #7CCC42
analogous
#4D42CC #9242CC #CC42C1
triadic
#9242CC #CC9242 #42CC92
tetradic
#9242CC #CC4D42 #7CCC42 #42C1CC
square
#9242CC #CC4D42 #7CCC42 #42C1CC
split-complementary
#9242CC #C1CC42 #42CC4D
monochromatic
#511F74 #722CA4 #9242CC #AE72D9 #CAA2E6

Accessibility & contrast

On white

5.42
#9242CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#9242CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9242CC
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9242CC#FFFFFF#000000##FFFFFF
##9242CC1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#206BC9
Tritanopia (blue-blind)
#896082
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9242cc;
/* rgb */ color: rgb(146, 66, 204);
/* oklch */ color: oklch(54.9% 0.207 307.5);
Tailwind
colors: {
  custom: {
    50: '#b67cdc',
    500: '#9242cc',
    950: '#000000',
  },
}
SCSS
$custom: #9242cc;
$custom-light: #b67cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9242cc",
  "rgb": {
    "r": 146,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 274.783,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54888,
    "c": 0.20678,
    "h": 307.5
  },
  "luminance": 0.14367
}

Semantic roles & 50–950 ramp

primary
#9242CC
secondary
#B0D397
accent
#E14788
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9242CC

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

Preview Lab → · Contrast checker → · Palette generator →

#9242CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva