#9242D7#9242D7

#9242D7 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.218 H 304.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9242D7
RGBrgb(146, 66, 215)
HSLhsl(272, 65%, 55%)
HSVhsv(272, 69%, 84%)
CMYKcmyk(32.1%, 69.3%, 0%, 15.7%)
CIE-LABlab(45.52, 59.69, -63.01)
CIE-LCHlch(45.52, 86.80, 313.45°)
OKLaboklab(55.67% 0.1244 -0.1791)
OKLCHoklch(55.67% 0.218 304.8)
XYZxyz(26.0653, 14.9139, 65.7823)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9242D7 #87D742
analogous
#4742D7 #9242D7 #D742D1
triadic
#9242D7 #D79242 #42D792
tetradic
#9242D7 #D74742 #87D742 #42D1D7
square
#9242D7 #D74742 #87D742 #42D1D7
split-complementary
#9242D7 #D1D742 #42D747
monochromatic
#531C83 #7326B5 #9242D7 #AF75E2 #CCA7EC

Accessibility & contrast

On white

5.27
#9242D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9242D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9242D7
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9242D7#FFFFFF#000000##FFFFFF
##9242D71.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#006CD4
Tritanopia (blue-blind)
#856488
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9242d7;
/* rgb */ color: rgb(146, 66, 215);
/* oklch */ color: oklch(55.7% 0.218 304.8);
Tailwind
colors: {
  custom: {
    50: '#b77ce4',
    500: '#9242d7',
    950: '#000000',
  },
}
SCSS
$custom: #9242d7;
$custom-light: #b77ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#9242d7",
  "rgb": {
    "r": 146,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 272.215,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55672,
    "c": 0.21806,
    "h": 304.8
  },
  "luminance": 0.14914
}

Semantic roles & 50–950 ramp

primary
#9242D7
secondary
#B8DA9B
accent
#E8408E
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9242D7

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

Preview Lab → · Contrast checker → · Palette generator →

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