#945FDB#945FDB

#945FDB is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.0% C 0.184 H 300.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#945FDB
RGBrgb(148, 95, 219)
HSLhsl(266, 63%, 62%)
HSVhsv(266, 57%, 86%)
CMYKcmyk(32.4%, 56.6%, 0%, 14.1%)
CIE-LABlab(51.38, 46.53, -55.83)
CIE-LCHlch(51.38, 72.68, 309.81°)
OKLaboklab(60.05% 0.0938 -0.158)
OKLCHoklch(60.05% 0.184 300.7)
XYZxyz(29.0881, 19.5946, 69.2538)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945FDB #A6DB5F
analogous
#5F68DB #945FDB #D25FDB
triadic
#945FDB #DB945F #5FDB94
tetradic
#945FDB #DB5F68 #A6DB5F #5FDBD2
square
#945FDB #DB5F68 #A6DB5F #5FDBD2
split-complementary
#945FDB #DBD25F #68DB5F
monochromatic
#57239C #732ECE #945FDB #B591E6 #D7C3F1

Accessibility & contrast

On white

4.27
#945FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#945FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945FDB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945FDB#FFFFFF#000000##000000
##945FDB1.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)
#277ADF
Deuteranopia (green-blind)
#3C7AD8
Tritanopia (blue-blind)
#857894
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #945fdb;
/* rgb */ color: rgb(148, 95, 219);
/* oklch */ color: oklch(60.0% 0.184 300.7);
Tailwind
colors: {
  custom: {
    50: '#b78ee7',
    500: '#945fdb',
    950: '#000000',
  },
}
SCSS
$custom: #945fdb;
$custom-light: #b78ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#945fdb",
  "rgb": {
    "r": 148,
    "g": 95,
    "b": 219
  },
  "hsl": {
    "h": 265.645,
    "s": 63.265,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60049,
    "c": 0.18377,
    "h": 300.7
  },
  "luminance": 0.19595
}

Semantic roles & 50–950 ramp

primary
#945FDB
secondary
#CEE2B4
accent
#CB1A80
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #945FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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