#9238CC#9238CC

#9238CC is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.8% C 0.219 H 308.4°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#9238CC
RGBrgb(146, 56, 204)
HSLhsl(276, 59%, 51%)
HSVhsv(276, 73%, 80%)
CMYKcmyk(28.4%, 72.5%, 0%, 20%)
CIE-LABlab(43.21, 61.53, -60.42)
CIE-LCHlch(43.21, 86.24, 315.52°)
OKLaboklab(53.79% 0.136 -0.1714)
OKLCHoklch(53.79% 0.219 308.4)
XYZxyz(24.1651, 13.2994, 58.4091)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238CC #72CC38
analogous
#4838CC #9238CC #CC38BC
triadic
#9238CC #CC9238 #38CC92
tetradic
#9238CC #CC4838 #72CC38 #38BCCC
square
#9238CC #CC4838 #72CC38 #38BCCC
split-complementary
#9238CC #BCCC38 #38CC48
monochromatic
#4E1C6E #70299E #9238CC #AD69D8 #C799E5

Accessibility & contrast

On white

5.74
#9238CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9238CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9238CC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238CC#FFFFFF#000000##FFFFFF
##9238CC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#0667C9
Tritanopia (blue-blind)
#895A7F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9238cc;
/* rgb */ color: rgb(146, 56, 204);
/* oklch */ color: oklch(53.8% 0.219 308.4);
Tailwind
colors: {
  custom: {
    50: '#b777dc',
    500: '#9238cc',
    950: '#000000',
  },
}
SCSS
$custom: #9238cc;
$custom-light: #b777dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9238cc",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 276.486,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53788,
    "c": 0.21877,
    "h": 308.4
  },
  "luminance": 0.13299
}

Semantic roles & 50–950 ramp

primary
#9238CC
secondary
#A9D18F
accent
#E24583
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9238CC

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

Preview Lab → · Contrast checker → · Palette generator →

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