#945FBB#945FBB

#945FBB is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.1% C 0.145 H 309.2°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#945FBB
RGBrgb(148, 95, 187)
HSLhsl(275, 40%, 55%)
HSVhsv(275, 49%, 73%)
CMYKcmyk(20.9%, 49.2%, 0%, 26.7%)
CIE-LABlab(49.58, 38.85, -40.36)
CIE-LCHlch(49.58, 56.02, 313.91°)
OKLaboklab(58.14% 0.0918 -0.1128)
OKLCHoklch(58.14% 0.145 309.2)
XYZxyz(25.2729, 18.0685, 49.1603)
Luminance0.1807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945FBB #86BB5F
analogous
#665FBB #945FBB #BB5FB4
triadic
#945FBB #BB945F #5FBB94
tetradic
#945FBB #BB665F #86BB5F #5FB4BB
square
#945FBB #BB665F #86BB5F #5FB4BB
split-complementary
#945FBB #B4BB5F #5FBB66
monochromatic
#553070 #75429B #945FBB #B18ACD #CDB5E0

Accessibility & contrast

On white

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

On black

4.61
#945FBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945FBB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945FBB#FFFFFF#000000##000000
##945FBB1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4774BE
Deuteranopia (green-blind)
#5677B9
Tritanopia (blue-blind)
#8F6E84
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #945fbb;
/* rgb */ color: rgb(148, 95, 187);
/* oklch */ color: oklch(58.1% 0.145 309.2);
Tailwind
colors: {
  custom: {
    50: '#b58ed0',
    500: '#945fbb',
    950: '#000000',
  },
}
SCSS
$custom: #945fbb;
$custom-light: #b58ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#945fbb",
  "rgb": {
    "r": 148,
    "g": 95,
    "b": 187
  },
  "hsl": {
    "h": 274.565,
    "s": 40.351,
    "l": 55.294
  },
  "oklch": {
    "l": 0.58141,
    "c": 0.14543,
    "h": 309.2
  },
  "luminance": 0.18068
}

Semantic roles & 50–950 ramp

primary
#945FBB
secondary
#B8CEA8
accent
#D0588B
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #945FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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