#9238C8#9238C8

#9238C8 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.5% C 0.215 H 309.5°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9238C8
RGBrgb(146, 56, 200)
HSLhsl(278, 57%, 50%)
HSVhsv(278, 72%, 78%)
CMYKcmyk(27%, 72%, 0%, 21.6%)
CIE-LABlab(42.93, 60.67, -58.56)
CIE-LCHlch(42.93, 84.32, 316.01°)
OKLaboklab(53.5% 0.1366 -0.1659)
OKLCHoklch(53.5% 0.215 309.5)
XYZxyz(23.6915, 13.1099, 55.9148)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238C8 #6EC838
analogous
#4A38C8 #9238C8 #C838B6
triadic
#9238C8 #C89238 #38C892
tetradic
#9238C8 #C84A38 #6EC838 #38B6C8
square
#9238C8 #C84A38 #6EC838 #38B6C8
split-complementary
#9238C8 #B6C838 #38C84A
monochromatic
#4C1D69 #6F2A99 #9238C8 #AC68D5 #C798E3

Accessibility & contrast

On white

5.80
#9238C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#9238C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9238C8
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238C8#FFFFFF#000000##FFFFFF
##9238C81.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#1667C5
Tritanopia (blue-blind)
#8A597D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9238c8;
/* rgb */ color: rgb(146, 56, 200);
/* oklch */ color: oklch(53.5% 0.215 309.5);
Tailwind
colors: {
  custom: {
    50: '#b777da',
    500: '#9238c8',
    950: '#000000',
  },
}
SCSS
$custom: #9238c8;
$custom-light: #b777da;
$custom-dark: #000000;
JSON
{
  "hex": "#9238c8",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 277.5,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53499,
    "c": 0.21492,
    "h": 309.5
  },
  "luminance": 0.13109
}

Semantic roles & 50–950 ramp

primary
#9238C8
secondary
#A6CE8E
accent
#E04881
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9238C8

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

Preview Lab → · Contrast checker → · Palette generator →

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