#945DF2#945DF2

#945DF2 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.3% C 0.214 H 296.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#945DF2
RGBrgb(148, 93, 242)
HSLhsl(262, 85%, 66%)
HSVhsv(262, 62%, 95%)
CMYKcmyk(38.8%, 61.6%, 0%, 5.1%)
CIE-LABlab(52.44, 53.39, -67.06)
CIE-LCHlch(52.44, 85.72, 308.52°)
OKLaboklab(61.29% 0.0955 -0.191)
OKLCHoklch(61.29% 0.214 296.6)
XYZxyz(32.1500, 20.5348, 86.2569)
Luminance0.2054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945DF2 #BBF25D
analogous
#5D70F2 #945DF2 #DF5DF2
triadic
#945DF2 #F2945D #5DF294
tetradic
#945DF2 #F25D70 #BBF25D #5DF2DF
square
#945DF2 #F25D70 #BBF25D #5DF2DF
split-complementary
#945DF2 #F2DF5D #70F25D
monochromatic
#5310C5 #6F24ED #945DF2 #B996F7 #DFCEFB

Accessibility & contrast

On white

4.11
#945DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#945DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945DF2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945DF2#FFFFFF#000000##000000
##945DF21.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF7
Deuteranopia (green-blind)
#027BEF
Tritanopia (blue-blind)
#7D7E9F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #945df2;
/* rgb */ color: rgb(148, 93, 242);
/* oklch */ color: oklch(61.3% 0.214 296.6);
Tailwind
colors: {
  custom: {
    50: '#b98df7',
    500: '#945df2',
    950: '#000000',
  },
}
SCSS
$custom: #945df2;
$custom-light: #b98df7;
$custom-dark: #000000;
JSON
{
  "hex": "#945df2",
  "rgb": {
    "r": 148,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 262.148,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.6129,
    "c": 0.21355,
    "h": 296.6
  },
  "luminance": 0.20535
}

Semantic roles & 50–950 ramp

primary
#945DF2
secondary
#DCEEBD
accent
#E20490
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #945DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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