#9231E2#9231E2

#9231E2 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.8% C 0.247 H 303.8°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9231E2
RGBrgb(146, 49, 226)
HSLhsl(273, 75%, 54%)
HSVhsv(273, 78%, 89%)
CMYKcmyk(35.4%, 78.3%, 0%, 11.4%)
CIE-LABlab(43.94, 68.99, -71.85)
CIE-LCHlch(43.94, 99.61, 313.84°)
OKLaboklab(54.82% 0.1372 -0.2049)
OKLCHoklch(54.82% 0.247 303.8)
XYZxyz(26.6766, 13.7987, 73.1948)
Luminance0.1380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9231E2 #81E231
analogous
#3A31E2 #9231E2 #E231DA
triadic
#9231E2 #E29231 #31E292
tetradic
#9231E2 #E23A31 #81E231 #31DAE2
square
#9231E2 #E23A31 #81E231 #31DAE2
split-complementary
#9231E2 #DAE231 #31E23A
monochromatic
#521386 #731ABB #9231E2 #AE67EA #CB9CF1

Accessibility & contrast

On white

5.59
#9231E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#9231E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9231E2
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9231E2#FFFFFF#000000##FFFFFF
##9231E21.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E7
Deuteranopia (green-blind)
#0068DF
Tritanopia (blue-blind)
#82618A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9231e2;
/* rgb */ color: rgb(146, 49, 226);
/* oklch */ color: oklch(54.8% 0.247 303.8);
Tailwind
colors: {
  custom: {
    50: '#b975ec',
    500: '#9231e2',
    950: '#000000',
  },
}
SCSS
$custom: #9231e2;
$custom-light: #b975ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9231e2",
  "rgb": {
    "r": 146,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 272.881,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54821,
    "c": 0.24663,
    "h": 303.8
  },
  "luminance": 0.13799
}

Semantic roles & 50–950 ramp

primary
#9231E2
secondary
#B4DD92
accent
#F2368B
background
#FCF7FE
surface
#F8EDFD
border
#D1C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #9231E2

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

Preview Lab → · Contrast checker → · Palette generator →

#9231E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva