#9231DB#9231DB

#9231DB is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 54.3% C 0.240 H 305.4°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#9231DB
RGBrgb(146, 49, 219)
HSLhsl(274, 70%, 53%)
HSVhsv(274, 78%, 86%)
CMYKcmyk(33.3%, 77.6%, 0%, 14.1%)
CIE-LABlab(43.39, 67.47, -68.75)
CIE-LCHlch(43.39, 96.33, 314.46°)
OKLaboklab(54.27% 0.139 -0.1958)
OKLCHoklch(54.27% 0.24 305.4)
XYZxyz(25.7357, 13.4223, 68.2391)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9231DB #7ADB31
analogous
#3D31DB #9231DB #DB31CF
triadic
#9231DB #DB9231 #31DB92
tetradic
#9231DB #DB3D31 #7ADB31 #31CFDB
square
#9231DB #DB3D31 #7ADB31 #31CFDB
split-complementary
#9231DB #CFDB31 #31DB3D
monochromatic
#50167C #721FB0 #9231DB #AE65E4 #C999ED

Accessibility & contrast

On white

5.70
#9231DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9231DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9231DB
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9231DB#FFFFFF#000000##FFFFFF
##9231DB1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#0067D8
Tritanopia (blue-blind)
#845D86
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9231db;
/* rgb */ color: rgb(146, 49, 219);
/* oklch */ color: oklch(54.3% 0.240 305.4);
Tailwind
colors: {
  custom: {
    50: '#b874e7',
    500: '#9231db',
    950: '#000000',
  },
}
SCSS
$custom: #9231db;
$custom-light: #b874e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9231db",
  "rgb": {
    "r": 146,
    "g": 49,
    "b": 219
  },
  "hsl": {
    "h": 274.235,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54266,
    "c": 0.24015,
    "h": 305.4
  },
  "luminance": 0.13422
}

Semantic roles & 50–950 ramp

primary
#9231DB
secondary
#AFD98F
accent
#ED3B87
background
#FBF7FE
surface
#F7EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #9231DB

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

Preview Lab → · Contrast checker → · Palette generator →

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