#945EF2#945EF2

#945EF2 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.4% C 0.212 H 296.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#945EF2
RGBrgb(148, 94, 242)
HSLhsl(262, 85%, 66%)
HSVhsv(262, 61%, 95%)
CMYKcmyk(38.8%, 61.2%, 0%, 5.1%)
CIE-LABlab(52.63, 52.87, -66.75)
CIE-LCHlch(52.63, 85.15, 308.38°)
OKLaboklab(61.43% 0.0944 -0.1901)
OKLCHoklch(61.43% 0.212 296.4)
XYZxyz(32.2383, 20.7115, 86.2864)
Luminance0.2071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945EF2 #BCF25E
analogous
#5E72F2 #945EF2 #DE5EF2
triadic
#945EF2 #F2945E #5EF294
tetradic
#945EF2 #F25E72 #BCF25E #5EF2DE
square
#945EF2 #F25E72 #BCF25E #5EF2DE
split-complementary
#945EF2 #F2DE5E #72F25E
monochromatic
#5210C6 #6E25ED #945EF2 #BA97F7 #DFCFFB

Accessibility & contrast

On white

4.08
#945EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#945EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #945EF2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945EF2#FFFFFF#000000##000000
##945EF21.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF7
Deuteranopia (green-blind)
#097CEF
Tritanopia (blue-blind)
#7D7F9F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #945ef2;
/* rgb */ color: rgb(148, 94, 242);
/* oklch */ color: oklch(61.4% 0.212 296.4);
Tailwind
colors: {
  custom: {
    50: '#b98ef7',
    500: '#945ef2',
    950: '#000000',
  },
}
SCSS
$custom: #945ef2;
$custom-light: #b98ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#945ef2",
  "rgb": {
    "r": 148,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 261.892,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.61432,
    "c": 0.21223,
    "h": 296.4
  },
  "luminance": 0.20712
}

Semantic roles & 50–950 ramp

primary
#945EF2
secondary
#DDEEBD
accent
#E20491
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #945EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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