#905CEB#905CEB

#905CEB is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.3% C 0.206 H 296.4°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#905CEB
RGBrgb(144, 92, 235)
HSLhsl(262, 78%, 64%)
HSVhsv(262, 61%, 92%)
CMYKcmyk(38.7%, 60.9%, 0%, 7.8%)
CIE-LABlab(51.36, 51.29, -64.90)
CIE-LCHlch(51.36, 82.73, 308.32°)
OKLaboklab(60.27% 0.0918 -0.1848)
OKLCHoklch(60.27% 0.206 296.4)
XYZxyz(30.3203, 19.5812, 80.7632)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#905CEB #B7EB5C
analogous
#5C70EB #905CEB #D75CEB
triadic
#905CEB #EB905C #5CEB90
tetradic
#905CEB #EB5C70 #B7EB5C #5CEBD7
square
#905CEB #EB5C70 #B7EB5C #5CEBD7
split-complementary
#905CEB #EBD75C #70EB5C
monochromatic
#5016B6 #6B25E4 #905CEB #B593F2 #DAC9F8

Accessibility & contrast

On white

4.27
#905CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#905CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #905CEB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##905CEB#FFFFFF#000000##000000
##905CEB1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#1078E8
Tritanopia (blue-blind)
#7A7C9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #905ceb;
/* rgb */ color: rgb(144, 92, 235);
/* oklch */ color: oklch(60.3% 0.206 296.4);
Tailwind
colors: {
  custom: {
    50: '#b68cf2',
    500: '#905ceb',
    950: '#000000',
  },
}
SCSS
$custom: #905ceb;
$custom-light: #b68cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#905ceb",
  "rgb": {
    "r": 144,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 261.818,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.60265,
    "c": 0.20634,
    "h": 296.4
  },
  "luminance": 0.19582
}

Semantic roles & 50–950 ramp

primary
#905CEB
secondary
#D8EAB8
accent
#DA0B8F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #905CEB

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

Preview Lab → · Contrast checker → · Palette generator →

#905CEB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva