#9242CA#9242CA

#9242CA is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.7% C 0.205 H 308.0°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9242CA
RGBrgb(146, 66, 202)
HSLhsl(275, 56%, 53%)
HSVhsv(275, 67%, 79%)
CMYKcmyk(27.7%, 67.3%, 0%, 20.8%)
CIE-LABlab(44.62, 56.74, -56.98)
CIE-LCHlch(44.62, 80.42, 314.88°)
OKLaboklab(54.75% 0.126 -0.1613)
OKLCHoklch(54.75% 0.205 308)
XYZxyz(24.4607, 14.2720, 57.3318)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9242CA #7ACA42
analogous
#4E42CA #9242CA #CA42BE
triadic
#9242CA #CA9242 #42CA92
tetradic
#9242CA #CA4E42 #7ACA42 #42BECA
square
#9242CA #CA4E42 #7ACA42 #42BECA
split-complementary
#9242CA #BECA42 #42CA4E
monochromatic
#502072 #722DA2 #9242CA #AE72D7 #C9A2E5

Accessibility & contrast

On white

5.45
#9242CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9242CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9242CA
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9242CA#FFFFFF#000000##FFFFFF
##9242CA1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#246AC7
Tritanopia (blue-blind)
#895F81
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9242ca;
/* rgb */ color: rgb(146, 66, 202);
/* oklch */ color: oklch(54.7% 0.205 308.0);
Tailwind
colors: {
  custom: {
    50: '#b67cdb',
    500: '#9242ca',
    950: '#000000',
  },
}
SCSS
$custom: #9242ca;
$custom-light: #b67cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9242ca",
  "rgb": {
    "r": 146,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 275.294,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54749,
    "c": 0.20473,
    "h": 308
  },
  "luminance": 0.14272
}

Semantic roles & 50–950 ramp

primary
#9242CA
secondary
#AFD196
accent
#DF4887
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9242CA

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

Preview Lab → · Contrast checker → · Palette generator →

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