#9238C5#9238C5

#9238C5 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.3% C 0.212 H 310.3°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#9238C5
RGBrgb(146, 56, 197)
HSLhsl(278, 56%, 50%)
HSVhsv(278, 72%, 77%)
CMYKcmyk(25.9%, 71.6%, 0%, 22.7%)
CIE-LABlab(42.72, 60.02, -57.15)
CIE-LCHlch(42.72, 82.88, 316.40°)
OKLaboklab(53.29% 0.1371 -0.1618)
OKLCHoklch(53.29% 0.212 310.3)
XYZxyz(23.3443, 12.9711, 54.0864)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238C5 #6BC538
analogous
#4C38C5 #9238C5 #C538B2
triadic
#9238C5 #C59238 #38C592
tetradic
#9238C5 #C54C38 #6BC538 #38B2C5
square
#9238C5 #C54C38 #6BC538 #38B2C5
split-complementary
#9238C5 #B2C538 #38C54C
monochromatic
#4B1D66 #6F2A95 #9238C5 #AC67D4 #C696E1

Accessibility & contrast

On white

5.84
#9238C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#9238C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9238C5
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238C5#FFFFFF#000000##FFFFFF
##9238C51.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#1D66C2
Tritanopia (blue-blind)
#8B587B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9238c5;
/* rgb */ color: rgb(146, 56, 197);
/* oklch */ color: oklch(53.3% 0.212 310.3);
Tailwind
colors: {
  custom: {
    50: '#b777d7',
    500: '#9238c5',
    950: '#000000',
  },
}
SCSS
$custom: #9238c5;
$custom-light: #b777d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9238c5",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 278.298,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53285,
    "c": 0.21203,
    "h": 310.3
  },
  "luminance": 0.12971
}

Semantic roles & 50–950 ramp

primary
#9238C5
secondary
#A3CD8C
accent
#DF497F
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9238C5

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

Preview Lab → · Contrast checker → · Palette generator →

#9238C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva