#9238D1#9238D1

#9238D1 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.2% C 0.224 H 307.2°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9238D1
RGBrgb(146, 56, 209)
HSLhsl(275, 62%, 52%)
HSVhsv(275, 73%, 82%)
CMYKcmyk(30.1%, 73.2%, 0%, 18%)
CIE-LABlab(43.57, 62.62, -62.72)
CIE-LCHlch(43.57, 88.63, 314.96°)
OKLaboklab(54.16% 0.1351 -0.1781)
OKLCHoklch(54.16% 0.224 307.2)
XYZxyz(24.7744, 13.5431, 61.6182)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238D1 #77D138
analogous
#4638D1 #9238D1 #D138C4
triadic
#9238D1 #D19238 #38D192
tetradic
#9238D1 #D14638 #77D138 #38C4D1
square
#9238D1 #D14638 #77D138 #38C4D1
split-complementary
#9238D1 #C4D138 #38D146
monochromatic
#4F1B74 #7126A6 #9238D1 #AD6ADC #C89BE8

Accessibility & contrast

On white

5.66
#9238D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9238D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9238D1
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238D1#FFFFFF#000000##FFFFFF
##9238D11.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#0068CE
Tritanopia (blue-blind)
#875D82
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9238d1;
/* rgb */ color: rgb(146, 56, 209);
/* oklch */ color: oklch(54.2% 0.224 307.2);
Tailwind
colors: {
  custom: {
    50: '#b777e0',
    500: '#9238d1',
    950: '#000000',
  },
}
SCSS
$custom: #9238d1;
$custom-light: #b777e0;
$custom-dark: #000000;
JSON
{
  "hex": "#9238d1",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 275.294,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.54156,
    "c": 0.2236,
    "h": 307.2
  },
  "luminance": 0.13543
}

Semantic roles & 50–950 ramp

primary
#9238D1
secondary
#ACD491
accent
#E64285
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9238D1

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

Preview Lab → · Contrast checker → · Palette generator →

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