#7945BF#7945BF

#7945BF is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.5% C 0.183 H 299.5°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7945BF
RGBrgb(121, 69, 191)
HSLhsl(266, 49%, 51%)
HSVhsv(266, 64%, 75%)
CMYKcmyk(36.6%, 63.9%, 0%, 25.1%)
CIE-LABlab(41.35, 47.28, -56.03)
CIE-LCHlch(41.35, 73.31, 310.16°)
OKLaboklab(51.48% 0.0902 -0.1594)
OKLCHoklch(51.48% 0.183 299.5)
XYZxyz(19.4149, 12.0826, 50.5894)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945BF #8BBF45
analogous
#454EBF #7945BF #B645BF
triadic
#7945BF #BF7945 #45BF79
tetradic
#7945BF #BF454E #8BBF45 #45BFB6
square
#7945BF #BF454E #8BBF45 #45BFB6
split-complementary
#7945BF #BFB645 #4EBF45
monochromatic
#402366 #5C3394 #7945BF #9A73CF #BBA0DE

Accessibility & contrast

On white

6.15
#7945BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7945BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945BF
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945BF#FFFFFF#000000##FFFFFF
##7945BF1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0961BC
Tritanopia (blue-blind)
#69607C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7945bf;
/* rgb */ color: rgb(121, 69, 191);
/* oklch */ color: oklch(51.5% 0.183 299.5);
Tailwind
colors: {
  custom: {
    50: '#a57cd3',
    500: '#7945bf',
    950: '#000000',
  },
}
SCSS
$custom: #7945bf;
$custom-light: #a57cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7945bf",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 265.574,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51483,
    "c": 0.18315,
    "h": 299.5
  },
  "luminance": 0.12083
}

Semantic roles & 50–950 ramp

primary
#7945BF
secondary
#B4CB95
accent
#D84F9E
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7945BF

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

Preview Lab → · Contrast checker → · Palette generator →

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