#9238CD#9238CD

#9238CD is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.9% C 0.220 H 308.2°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#9238CD
RGBrgb(146, 56, 205)
HSLhsl(276, 60%, 51%)
HSVhsv(276, 73%, 80%)
CMYKcmyk(28.8%, 72.7%, 0%, 19.6%)
CIE-LABlab(43.28, 61.75, -60.88)
CIE-LCHlch(43.28, 86.72, 315.41°)
OKLaboklab(53.86% 0.1358 -0.1727)
OKLCHoklch(53.86% 0.22 308.2)
XYZxyz(24.2854, 13.3475, 59.0427)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238CD #73CD38
analogous
#4738CD #9238CD #CD38BD
triadic
#9238CD #CD9238 #38CD92
tetradic
#9238CD #CD4738 #73CD38 #38BDCD
square
#9238CD #CD4738 #73CD38 #38BDCD
split-complementary
#9238CD #BDCD38 #38CD47
monochromatic
#4E1C6F #7028A0 #9238CD #AD69D9 #C89AE6

Accessibility & contrast

On white

5.72
#9238CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#9238CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9238CD
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238CD#FFFFFF#000000##FFFFFF
##9238CD1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#0167CA
Tritanopia (blue-blind)
#895B80
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9238cd;
/* rgb */ color: rgb(146, 56, 205);
/* oklch */ color: oklch(53.9% 0.220 308.2);
Tailwind
colors: {
  custom: {
    50: '#b777dd',
    500: '#9238cd',
    950: '#000000',
  },
}
SCSS
$custom: #9238cd;
$custom-light: #b777dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9238cd",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 276.242,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53861,
    "c": 0.21974,
    "h": 308.2
  },
  "luminance": 0.13347
}

Semantic roles & 50–950 ramp

primary
#9238CD
secondary
#AAD18F
accent
#E34583
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9238CD

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

Preview Lab → · Contrast checker → · Palette generator →

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