#9238CA#9238CA

#9238CA is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.6% C 0.217 H 308.9°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#9238CA
RGBrgb(146, 56, 202)
HSLhsl(277, 58%, 51%)
HSVhsv(277, 72%, 79%)
CMYKcmyk(27.7%, 72.3%, 0%, 20.8%)
CIE-LABlab(43.07, 61.10, -59.49)
CIE-LCHlch(43.07, 85.28, 315.76°)
OKLaboklab(53.64% 0.1363 -0.1686)
OKLCHoklch(53.64% 0.217 308.9)
XYZxyz(23.9267, 13.2040, 57.1538)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9238CA #70CA38
analogous
#4938CA #9238CA #CA38B9
triadic
#9238CA #CA9238 #38CA92
tetradic
#9238CA #CA4938 #70CA38 #38B9CA
square
#9238CA #CA4938 #70CA38 #38B9CA
split-complementary
#9238CA #B9CA38 #38CA49
monochromatic
#4D1D6B #70299B #9238CA #AC68D7 #C799E4

Accessibility & contrast

On white

5.77
#9238CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9238CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9238CA
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9238CA#FFFFFF#000000##FFFFFF
##9238CA1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0F67C7
Tritanopia (blue-blind)
#8A5A7E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9238ca;
/* rgb */ color: rgb(146, 56, 202);
/* oklch */ color: oklch(53.6% 0.217 308.9);
Tailwind
colors: {
  custom: {
    50: '#b777db',
    500: '#9238ca',
    950: '#000000',
  },
}
SCSS
$custom: #9238ca;
$custom-light: #b777db;
$custom-dark: #000000;
JSON
{
  "hex": "#9238ca",
  "rgb": {
    "r": 146,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 276.986,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53643,
    "c": 0.21684,
    "h": 308.9
  },
  "luminance": 0.13204
}

Semantic roles & 50–950 ramp

primary
#9238CA
secondary
#A7CF8E
accent
#E14782
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9238CA

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

Preview Lab → · Contrast checker → · Palette generator →

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