#9238CB#9238CB

#9238CB is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.7% C 0.218 H 308.7°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#9238CB
RGBrgb(146, 56, 203)
HSLhsl(277, 59%, 51%)
HSVhsv(277, 72%, 80%)
CMYKcmyk(28.1%, 72.4%, 0%, 20.4%)
CIE-LABlab(43.14, 61.32, -59.96)
CIE-LCHlch(43.14, 85.76, 315.64°)
OKLaboklab(53.72% 0.1361 -0.17)
OKLCHoklch(53.72% 0.218 308.7)
XYZxyz(24.0455, 13.2515, 57.7794)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238CB #71CB38
analogous
#4838CB #9238CB #CB38BA
triadic
#9238CB #CB9238 #38CB92
tetradic
#9238CB #CB4838 #71CB38 #38BACB
square
#9238CB #CB4838 #71CB38 #38BACB
split-complementary
#9238CB #BACB38 #38CB48
monochromatic
#4D1C6C #70299D #9238CB #AD69D8 #C799E4

Accessibility & contrast

On white

5.75
#9238CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#9238CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9238CB
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238CB#FFFFFF#000000##FFFFFF
##9238CB1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0B67C8
Tritanopia (blue-blind)
#895A7E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9238cb;
/* rgb */ color: rgb(146, 56, 203);
/* oklch */ color: oklch(53.7% 0.218 308.7);
Tailwind
colors: {
  custom: {
    50: '#b777dc',
    500: '#9238cb',
    950: '#000000',
  },
}
SCSS
$custom: #9238cb;
$custom-light: #b777dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9238cb",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 276.735,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53716,
    "c": 0.21781,
    "h": 308.7
  },
  "luminance": 0.13251
}

Semantic roles & 50–950 ramp

primary
#9238CB
secondary
#A8D08F
accent
#E24682
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9238CB

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

Preview Lab → · Contrast checker → · Palette generator →

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