#945BCB#945BCB

#945BCB is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.4% C 0.171 H 305.2°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#945BCB
RGBrgb(148, 91, 203)
HSLhsl(271, 52%, 58%)
HSVhsv(271, 55%, 80%)
CMYKcmyk(27.1%, 55.2%, 0%, 20.4%)
CIE-LABlab(49.61, 44.81, -49.54)
CIE-LCHlch(49.61, 66.80, 312.13°)
OKLaboklab(58.44% 0.0985 -0.1396)
OKLCHoklch(58.44% 0.171 305.2)
XYZxyz(26.7310, 18.0900, 58.5718)
Luminance0.1809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945BCB #92CB5B
analogous
#5C5BCB #945BCB #CB5BCA
triadic
#945BCB #CB945B #5BCB94
tetradic
#945BCB #CB5C5B #92CB5B #5BCACB
square
#945BCB #CB5C5B #92CB5B #5BCACB
split-complementary
#945BCB #CACB5B #5BCB5C
monochromatic
#572982 #7538B1 #945BCB #B289DA #D1B8E8

Accessibility & contrast

On white

4.55
#945BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#945BCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945BCB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945BCB#FFFFFF#000000##000000
##945BCB1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3374CF
Deuteranopia (green-blind)
#4776C8
Tritanopia (blue-blind)
#8B708A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #945bcb;
/* rgb */ color: rgb(148, 91, 203);
/* oklch */ color: oklch(58.4% 0.171 305.2);
Tailwind
colors: {
  custom: {
    50: '#b68bdb',
    500: '#945bcb',
    950: '#000000',
  },
}
SCSS
$custom: #945bcb;
$custom-light: #b68bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#945bcb",
  "rgb": {
    "r": 148,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 270.536,
    "s": 51.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.58444,
    "c": 0.17083,
    "h": 305.2
  },
  "luminance": 0.1809
}

Semantic roles & 50–950 ramp

primary
#945BCB
secondary
#C0D7AA
accent
#DB4C93
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #945BCB

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

Preview Lab → · Contrast checker → · Palette generator →

#945BCB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva