#9238C4#9238C4

#9238C4 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.2% C 0.211 H 310.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9238C4
RGBrgb(146, 56, 196)
HSLhsl(279, 56%, 49%)
HSVhsv(279, 71%, 77%)
CMYKcmyk(25.5%, 71.4%, 0%, 23.1%)
CIE-LABlab(42.65, 59.81, -56.68)
CIE-LCHlch(42.65, 82.40, 316.54°)
OKLaboklab(53.21% 0.1372 -0.1604)
OKLCHoklch(53.21% 0.211 310.5)
XYZxyz(23.2301, 12.9254, 53.4850)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238C4 #6AC438
analogous
#4C38C4 #9238C4 #C438B0
triadic
#9238C4 #C49238 #38C492
tetradic
#9238C4 #C44C38 #6AC438 #38B0C4
square
#9238C4 #C44C38 #6AC438 #38B0C4
split-complementary
#9238C4 #B0C438 #38C44C
monochromatic
#4B1D65 #6F2A94 #9238C4 #AC66D3 #C696E1

Accessibility & contrast

On white

5.86
#9238C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9238C4
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238C4#FFFFFF#000000##FFFFFF
##9238C41.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#1F66C1
Tritanopia (blue-blind)
#8B577B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9238c4;
/* rgb */ color: rgb(146, 56, 196);
/* oklch */ color: oklch(53.2% 0.211 310.5);
Tailwind
colors: {
  custom: {
    50: '#b677d7',
    500: '#9238c4',
    950: '#000000',
  },
}
SCSS
$custom: #9238c4;
$custom-light: #b677d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9238c4",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 278.571,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53214,
    "c": 0.21107,
    "h": 310.5
  },
  "luminance": 0.12925
}

Semantic roles & 50–950 ramp

primary
#9238C4
secondary
#A3CC8C
accent
#DF497E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9238C4

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

Preview Lab → · Contrast checker → · Palette generator →

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