#9238C6#9238C6

#9238C6 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.4% C 0.213 H 310.0°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#9238C6
RGBrgb(146, 56, 198)
HSLhsl(278, 56%, 50%)
HSVhsv(278, 72%, 78%)
CMYKcmyk(26.3%, 71.7%, 0%, 22.4%)
CIE-LABlab(42.79, 60.24, -57.62)
CIE-LCHlch(42.79, 83.36, 316.27°)
OKLaboklab(53.36% 0.1369 -0.1632)
OKLCHoklch(53.36% 0.213 310)
XYZxyz(23.4593, 13.0171, 54.6919)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238C6 #6CC638
analogous
#4B38C6 #9238C6 #C638B3
triadic
#9238C6 #C69238 #38C692
tetradic
#9238C6 #C64B38 #6CC638 #38B3C6
square
#9238C6 #C64B38 #6CC638 #38B3C6
split-complementary
#9238C6 #B3C638 #38C64B
monochromatic
#4C1D67 #6F2B96 #9238C6 #AC67D4 #C697E2

Accessibility & contrast

On white

5.83
#9238C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#9238C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9238C6
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238C6#FFFFFF#000000##FFFFFF
##9238C61.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#1B66C3
Tritanopia (blue-blind)
#8B587C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9238c6;
/* rgb */ color: rgb(146, 56, 198);
/* oklch */ color: oklch(53.4% 0.213 310.0);
Tailwind
colors: {
  custom: {
    50: '#b777d8',
    500: '#9238c6',
    950: '#000000',
  },
}
SCSS
$custom: #9238c6;
$custom-light: #b777d8;
$custom-dark: #000000;
JSON
{
  "hex": "#9238c6",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 278.028,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53356,
    "c": 0.21299,
    "h": 310
  },
  "luminance": 0.13017
}

Semantic roles & 50–950 ramp

primary
#9238C6
secondary
#A4CD8D
accent
#DF4980
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120915
muted
#817B83

Preview Lab

Preview with #9238C6

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

Preview Lab → · Contrast checker → · Palette generator →

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