#945FAF#945FAF

#945FAF is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.5% C 0.131 H 313.4°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#945FAF
RGBrgb(148, 95, 175)
HSLhsl(280, 33%, 53%)
HSVhsv(280, 46%, 69%)
CMYKcmyk(15.4%, 45.7%, 0%, 31.4%)
CIE-LABlab(48.98, 36.13, -34.33)
CIE-LCHlch(48.98, 49.85, 316.46°)
OKLaboklab(57.5% 0.0901 -0.0953)
OKLCHoklch(57.5% 0.131 313.4)
XYZxyz(24.0415, 17.5760, 42.6752)
Luminance0.1757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#945FAF #7AAF5F
analogous
#6C5FAF #945FAF #AF5FA2
triadic
#945FAF #AF945F #5FAF94
tetradic
#945FAF #AF6C5F #7AAF5F #5FA2AF
square
#945FAF #AF6C5F #7AAF5F #5FA2AF
split-complementary
#945FAF #A2AF5F #5FAF6C
monochromatic
#523162 #74468B #945FAF #AF88C3 #CBB1D8

Accessibility & contrast

On white

4.65
#945FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#945FAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #945FAF
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##945FAF#FFFFFF#000000##FFFFFF
##945FAF1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F71B2
Deuteranopia (green-blind)
#5D76AD
Tritanopia (blue-blind)
#926B7F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #945faf;
/* rgb */ color: rgb(148, 95, 175);
/* oklch */ color: oklch(57.5% 0.131 313.4);
Tailwind
colors: {
  custom: {
    50: '#b58ec7',
    500: '#945faf',
    950: '#000000',
  },
}
SCSS
$custom: #945faf;
$custom-light: #b58ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#945faf",
  "rgb": {
    "r": 148,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 279.75,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.57496,
    "c": 0.13116,
    "h": 313.4
  },
  "luminance": 0.17575
}

Semantic roles & 50–950 ramp

primary
#945FAF
secondary
#AFC6A4
accent
#C95E82
background
#FBF8FC
surface
#F6F0F8
border
#D0CBD1
text
#110C13
muted
#807D82

Preview Lab

Preview with #945FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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