#945DEF#945DEF

#945DEF is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.1% C 0.210 H 297.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#945DEF
RGBrgb(148, 93, 239)
HSLhsl(263, 82%, 65%)
HSVhsv(263, 61%, 94%)
CMYKcmyk(38.1%, 61.1%, 0%, 6.3%)
CIE-LABlab(52.24, 52.63, -65.71)
CIE-LCHlch(52.24, 84.19, 308.69°)
OKLaboklab(61.08% 0.0957 -0.187)
OKLCHoklch(61.08% 0.21 297.1)
XYZxyz(31.7031, 20.3561, 83.9034)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945DEF #B8EF5D
analogous
#5D6FEF #945DEF #DD5DEF
triadic
#945DEF #EF945D #5DEF94
tetradic
#945DEF #EF5D6F #B8EF5D #5DEFDD
square
#945DEF #EF5D6F #B8EF5D #5DEFDD
split-complementary
#945DEF #EFDD5D #6FEF5D
monochromatic
#5413BF #6F25E9 #945DEF #B995F5 #DECCFA

Accessibility & contrast

On white

4.14
#945DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#945DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945DEF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945DEF#FFFFFF#000000##000000
##945DEF1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF4
Deuteranopia (green-blind)
#127BEC
Tritanopia (blue-blind)
#7E7D9D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #945def;
/* rgb */ color: rgb(148, 93, 239);
/* oklch */ color: oklch(61.1% 0.210 297.1);
Tailwind
colors: {
  custom: {
    50: '#b98df5',
    500: '#945def',
    950: '#000000',
  },
}
SCSS
$custom: #945def;
$custom-light: #b98df5;
$custom-dark: #000000;
JSON
{
  "hex": "#945def",
  "rgb": {
    "r": 148,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 262.603,
    "s": 82.022,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61082,
    "c": 0.21008,
    "h": 297.1
  },
  "luminance": 0.20357
}

Semantic roles & 50–950 ramp

primary
#945DEF
secondary
#DAEDBB
accent
#DE078D
background
#FBF8FF
surface
#F7F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #945DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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