#945FA2#945FA2

#945FA2 is a mid, moderate purple. Relative luminance 0.171; OKLCH L 56.8% C 0.116 H 319.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#945FA2
RGBrgb(148, 95, 162)
HSLhsl(287, 26%, 50%)
HSVhsv(287, 41%, 64%)
CMYKcmyk(8.6%, 41.4%, 0%, 36.5%)
CIE-LABlab(48.37, 33.32, -27.66)
CIE-LCHlch(48.37, 43.30, 320.31°)
OKLaboklab(56.85% 0.0877 -0.0761)
OKLCHoklch(56.85% 0.116 319.1)
XYZxyz(22.8257, 17.0897, 36.2717)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945FA2 #6DA25F
analogous
#735FA2 #945FA2 #A25F8E
triadic
#945FA2 #A2945F #5FA294
tetradic
#945FA2 #A2735F #6DA25F #5F8EA2
square
#945FA2 #A2735F #6DA25F #5F8EA2
split-complementary
#945FA2 #8EA25F #5FA273
monochromatic
#4E3155 #71487C #945FA2 #AE86B8 #C8ACCF

Accessibility & contrast

On white

4.75
#945FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#945FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #945FA2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945FA2#FFFFFF#000000##FFFFFF
##945FA21.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#556FA4
Deuteranopia (green-blind)
#6375A0
Tritanopia (blue-blind)
#956779
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #945fa2;
/* rgb */ color: rgb(148, 95, 162);
/* oklch */ color: oklch(56.8% 0.116 319.1);
Tailwind
colors: {
  custom: {
    50: '#b48dbd',
    500: '#945fa2',
    950: '#000000',
  },
}
SCSS
$custom: #945fa2;
$custom-light: #b48dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#945fa2",
  "rgb": {
    "r": 148,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 287.463,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56845,
    "c": 0.11609,
    "h": 319.1
  },
  "luminance": 0.17089
}

Semantic roles & 50–950 ramp

primary
#945FA2
secondary
#A6BD9F
accent
#C36579
background
#FBF8FB
surface
#F6F0F6
border
#D0CBD0
text
#110C12
muted
#807D81

Preview Lab

Preview with #945FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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