#7945BE#7945BE

#7945BE is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.4% C 0.182 H 299.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7945BE
RGBrgb(121, 69, 190)
HSLhsl(266, 48%, 51%)
HSVhsv(266, 64%, 75%)
CMYKcmyk(36.3%, 63.7%, 0%, 25.5%)
CIE-LABlab(41.28, 47.03, -55.56)
CIE-LCHlch(41.28, 72.79, 310.25°)
OKLaboklab(51.41% 0.0903 -0.158)
OKLCHoklch(51.41% 0.182 299.7)
XYZxyz(19.3053, 12.0387, 50.0118)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945BE #8ABE45
analogous
#454DBE #7945BE #B545BE
triadic
#7945BE #BE7945 #45BE79
tetradic
#7945BE #BE454D #8ABE45 #45BEB5
square
#7945BE #BE454D #8ABE45 #45BEB5
split-complementary
#7945BE #BEB545 #4DBE45
monochromatic
#402365 #5C3393 #7945BE #9A72CE #BAA0DE

Accessibility & contrast

On white

6.16
#7945BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7945BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945BE
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945BE#FFFFFF#000000##FFFFFF
##7945BE1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#0D60BB
Tritanopia (blue-blind)
#6A607B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7945be;
/* rgb */ color: rgb(121, 69, 190);
/* oklch */ color: oklch(51.4% 0.182 299.7);
Tailwind
colors: {
  custom: {
    50: '#a47cd2',
    500: '#7945be',
    950: '#000000',
  },
}
SCSS
$custom: #7945be;
$custom-light: #a47cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7945be",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 190
  },
  "hsl": {
    "h": 265.785,
    "s": 48.207,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51411,
    "c": 0.18198,
    "h": 299.7
  },
  "luminance": 0.12039
}

Semantic roles & 50–950 ramp

primary
#7945BE
secondary
#B3CA95
accent
#D8509D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7945BE

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

Preview Lab → · Contrast checker → · Palette generator →

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