#7945BB#7945BB

#7945BB is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.2% C 0.178 H 300.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7945BB
RGBrgb(121, 69, 187)
HSLhsl(266, 46%, 50%)
HSVhsv(266, 63%, 73%)
CMYKcmyk(35.3%, 63.1%, 0%, 26.7%)
CIE-LABlab(41.07, 46.26, -54.14)
CIE-LCHlch(41.07, 71.21, 310.51°)
OKLaboklab(51.2% 0.0905 -0.1538)
OKLCHoklch(51.2% 0.178 300.5)
XYZxyz(18.9808, 11.9089, 48.3027)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945BB #87BB45
analogous
#454CBB #7945BB #B445BB
triadic
#7945BB #BB7945 #45BB79
tetradic
#7945BB #BB454C #87BB45 #45BBB4
square
#7945BB #BB454C #87BB45 #45BBB4
split-complementary
#7945BB #BBB445 #4CBB45
monochromatic
#3F2462 #5C348F #7945BB #9972CB #BA9FDC

Accessibility & contrast

On white

6.21
#7945BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7945BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945BB
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945BB#FFFFFF#000000##FFFFFF
##7945BB1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#1660B8
Tritanopia (blue-blind)
#6B5F7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7945bb;
/* rgb */ color: rgb(121, 69, 187);
/* oklch */ color: oklch(51.2% 0.178 300.5);
Tailwind
colors: {
  custom: {
    50: '#a47bd0',
    500: '#7945bb',
    950: '#000000',
  },
}
SCSS
$custom: #7945bb;
$custom-light: #a47bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7945bb",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 266.441,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51196,
    "c": 0.17847,
    "h": 300.5
  },
  "luminance": 0.11909
}

Semantic roles & 50–950 ramp

primary
#7945BB
secondary
#B1C894
accent
#D6529C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7945BB

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

Preview Lab → · Contrast checker → · Palette generator →

#7945BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva