#9238C3#9238C3

#9238C3 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.1% C 0.210 H 310.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#9238C3
RGBrgb(146, 56, 195)
HSLhsl(279, 55%, 49%)
HSVhsv(279, 71%, 76%)
CMYKcmyk(25.1%, 71.3%, 0%, 23.5%)
CIE-LABlab(42.58, 59.60, -56.21)
CIE-LCHlch(42.58, 81.92, 316.67°)
OKLaboklab(53.14% 0.1373 -0.159)
OKLCHoklch(53.14% 0.21 310.8)
XYZxyz(23.1167, 12.8800, 52.8875)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238C3 #69C338
analogous
#4D38C3 #9238C3 #C338AF
triadic
#9238C3 #C39238 #38C392
tetradic
#9238C3 #C34D38 #69C338 #38AFC3
square
#9238C3 #C34D38 #69C338 #38AFC3
split-complementary
#9238C3 #AFC338 #38C34D
monochromatic
#4B1D64 #6E2A93 #9238C3 #AC65D3 #C695E1

Accessibility & contrast

On white

5.87
#9238C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#9238C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9238C3
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238C3#FFFFFF#000000##FFFFFF
##9238C31.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#2166C0
Tritanopia (blue-blind)
#8C577A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9238c3;
/* rgb */ color: rgb(146, 56, 195);
/* oklch */ color: oklch(53.1% 0.210 310.8);
Tailwind
colors: {
  custom: {
    50: '#b676d6',
    500: '#9238c3',
    950: '#000000',
  },
}
SCSS
$custom: #9238c3;
$custom-light: #b676d6;
$custom-dark: #000000;
JSON
{
  "hex": "#9238c3",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 278.849,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53143,
    "c": 0.21011,
    "h": 310.8
  },
  "luminance": 0.12879
}

Semantic roles & 50–950 ramp

primary
#9238C3
secondary
#A2CC8B
accent
#DF497E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9238C3

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

Preview Lab → · Contrast checker → · Palette generator →

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