#9238CF#9238CF

#9238CF is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 54.0% C 0.222 H 307.7°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9238CF
RGBrgb(146, 56, 207)
HSLhsl(276, 61%, 52%)
HSVhsv(276, 73%, 81%)
CMYKcmyk(29.5%, 72.9%, 0%, 18.8%)
CIE-LABlab(43.43, 62.19, -61.80)
CIE-LCHlch(43.43, 87.67, 315.18°)
OKLaboklab(54.01% 0.1355 -0.1754)
OKLCHoklch(54.01% 0.222 307.7)
XYZxyz(24.5283, 13.4447, 60.3223)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238CF #75CF38
analogous
#4738CF #9238CF #CF38C0
triadic
#9238CF #CF9238 #38CF92
tetradic
#9238CF #CF4738 #75CF38 #38C0CF
square
#9238CF #CF4738 #75CF38 #38C0CF
split-complementary
#9238CF #C0CF38 #38CF47
monochromatic
#4F1B71 #7127A3 #9238CF #AD69DB #C89BE7

Accessibility & contrast

On white

5.69
#9238CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9238CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9238CF
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238CF#FFFFFF#000000##FFFFFF
##9238CF1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0067CC
Tritanopia (blue-blind)
#885C81
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9238cf;
/* rgb */ color: rgb(146, 56, 207);
/* oklch */ color: oklch(54.0% 0.222 307.7);
Tailwind
colors: {
  custom: {
    50: '#b777df',
    500: '#9238cf',
    950: '#000000',
  },
}
SCSS
$custom: #9238cf;
$custom-light: #b777df;
$custom-dark: #000000;
JSON
{
  "hex": "#9238cf",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 275.762,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54008,
    "c": 0.22167,
    "h": 307.7
  },
  "luminance": 0.13444
}

Semantic roles & 50–950 ramp

primary
#9238CF
secondary
#ABD390
accent
#E44484
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9238CF

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

Preview Lab → · Contrast checker → · Palette generator →

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