#9238D9#9238D9

#9238D9 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.8% C 0.231 H 305.3°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9238D9
RGBrgb(146, 56, 217)
HSLhsl(274, 68%, 54%)
HSVhsv(274, 74%, 85%)
CMYKcmyk(32.7%, 74.2%, 0%, 14.9%)
CIE-LABlab(44.16, 64.39, -66.36)
CIE-LCHlch(44.16, 92.46, 314.14°)
OKLaboklab(54.76% 0.1336 -0.1888)
OKLCHoklch(54.76% 0.231 305.3)
XYZxyz(25.7898, 13.9493, 66.9660)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238D9 #7FD938
analogous
#4138D9 #9238D9 #D938D0
triadic
#9238D9 #D99238 #38D992
tetradic
#9238D9 #D94138 #7FD938 #38D0D9
square
#9238D9 #D94138 #7FD938 #38D0D9
split-complementary
#9238D9 #D0D938 #38D941
monochromatic
#51187E #7222B2 #9238D9 #AE6BE3 #CA9FED

Accessibility & contrast

On white

5.54
#9238D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9238D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9238D9
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238D9#FFFFFF#000000##FFFFFF
##9238D91.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DE
Deuteranopia (green-blind)
#0069D6
Tritanopia (blue-blind)
#856086
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9238d9;
/* rgb */ color: rgb(146, 56, 217);
/* oklch */ color: oklch(54.8% 0.231 305.3);
Tailwind
colors: {
  custom: {
    50: '#b877e6',
    500: '#9238d9',
    950: '#000000',
  },
}
SCSS
$custom: #9238d9;
$custom-light: #b877e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9238d9",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 273.54,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54757,
    "c": 0.23132,
    "h": 305.3
  },
  "luminance": 0.13949
}

Semantic roles & 50–950 ramp

primary
#9238D9
secondary
#B2D994
accent
#EB3D8A
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #9238D9

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

Preview Lab → · Contrast checker → · Palette generator →

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