#9242CB#9242CB

#9242CB is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.8% C 0.206 H 307.7°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#9242CB
RGBrgb(146, 66, 203)
HSLhsl(275, 57%, 53%)
HSVhsv(275, 67%, 80%)
CMYKcmyk(28.1%, 67.5%, 0%, 20.4%)
CIE-LABlab(44.69, 56.97, -57.45)
CIE-LCHlch(44.69, 80.91, 314.76°)
OKLaboklab(54.82% 0.1259 -0.1627)
OKLCHoklch(54.82% 0.206 307.7)
XYZxyz(24.5795, 14.3196, 57.9574)
Luminance0.1432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9242CB #7BCB42
analogous
#4D42CB #9242CB #CB42C0
triadic
#9242CB #CB9242 #42CB92
tetradic
#9242CB #CB4D42 #7BCB42 #42C0CB
square
#9242CB #CB4D42 #7BCB42 #42C0CB
split-complementary
#9242CB #C0CB42 #42CB4D
monochromatic
#502073 #722DA3 #9242CB #AE72D8 #C9A2E5

Accessibility & contrast

On white

5.44
#9242CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9242CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9242CB
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9242CB#FFFFFF#000000##FFFFFF
##9242CB1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#226AC8
Tritanopia (blue-blind)
#896081
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9242cb;
/* rgb */ color: rgb(146, 66, 203);
/* oklch */ color: oklch(54.8% 0.206 307.7);
Tailwind
colors: {
  custom: {
    50: '#b67cdc',
    500: '#9242cb',
    950: '#000000',
  },
}
SCSS
$custom: #9242cb;
$custom-light: #b67cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9242cb",
  "rgb": {
    "r": 146,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 275.036,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54819,
    "c": 0.20575,
    "h": 307.7
  },
  "luminance": 0.14319
}

Semantic roles & 50–950 ramp

primary
#9242CB
secondary
#AFD297
accent
#E04887
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9242CB

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

Preview Lab → · Contrast checker → · Palette generator →

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