#9240CA#9240CA

#9240CA is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.5% C 0.207 H 308.2°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9240CA
RGBrgb(146, 64, 202)
HSLhsl(276, 57%, 52%)
HSVhsv(276, 68%, 79%)
CMYKcmyk(27.7%, 68.3%, 0%, 20.8%)
CIE-LABlab(44.29, 57.65, -57.51)
CIE-LCHlch(44.29, 81.43, 315.07°)
OKLaboklab(54.52% 0.1282 -0.1629)
OKLCHoklch(54.52% 0.207 308.2)
XYZxyz(24.3459, 14.0424, 57.2936)
Luminance0.1404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240CA #78CA40
analogous
#4D40CA #9240CA #CA40BD
triadic
#9240CA #CA9240 #40CA92
tetradic
#9240CA #CA4D40 #78CA40 #40BDCA
square
#9240CA #CA4D40 #78CA40 #40BDCA
split-complementary
#9240CA #BDCA40 #40CA4D
monochromatic
#4F1F70 #712CA0 #9240CA #AD70D7 #C9A0E5

Accessibility & contrast

On white

5.51
#9240CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#9240CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240CA
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240CA#FFFFFF#000000##FFFFFF
##9240CA1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#216AC7
Tritanopia (blue-blind)
#895E80
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9240ca;
/* rgb */ color: rgb(146, 64, 202);
/* oklch */ color: oklch(54.5% 0.207 308.2);
Tailwind
colors: {
  custom: {
    50: '#b67bdb',
    500: '#9240ca',
    950: '#000000',
  },
}
SCSS
$custom: #9240ca;
$custom-light: #b67bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9240ca",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 275.652,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54515,
    "c": 0.20727,
    "h": 308.2
  },
  "luminance": 0.14042
}

Semantic roles & 50–950 ramp

primary
#9240CA
secondary
#ADD195
accent
#E04886
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9240CA

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

Preview Lab → · Contrast checker → · Palette generator →

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