#7945B3#7945B3

#7945B3 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.6% C 0.169 H 302.5°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7945B3
RGBrgb(121, 69, 179)
HSLhsl(268, 44%, 49%)
HSVhsv(268, 61%, 70%)
CMYKcmyk(32.4%, 61.5%, 0%, 29.8%)
CIE-LABlab(40.53, 44.24, -50.30)
CIE-LCHlch(40.53, 66.98, 311.33°)
OKLaboklab(50.64% 0.0909 -0.1425)
OKLCHoklch(50.64% 0.169 302.5)
XYZxyz(18.1481, 11.5758, 43.9174)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945B3 #7FB345
analogous
#4548B3 #7945B3 #B045B3
triadic
#7945B3 #B37945 #45B379
tetradic
#7945B3 #B34548 #7FB345 #45B3B0
square
#7945B3 #B34548 #7FB345 #45B3B0
split-complementary
#7945B3 #B3B045 #48B345
monochromatic
#3D235B #5B3487 #7945B3 #986EC7 #B89AD8

Accessibility & contrast

On white

6.33
#7945B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7945B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945B3
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945B3#FFFFFF#000000##FFFFFF
##7945B31.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB6
Deuteranopia (green-blind)
#255FB1
Tritanopia (blue-blind)
#6E5C75
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7945b3;
/* rgb */ color: rgb(121, 69, 179);
/* oklch */ color: oklch(50.6% 0.169 302.5);
Tailwind
colors: {
  custom: {
    50: '#a47bca',
    500: '#7945b3',
    950: '#000000',
  },
}
SCSS
$custom: #7945b3;
$custom-light: #a47bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7945b3",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 179
  },
  "hsl": {
    "h": 268.364,
    "s": 44.355,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50635,
    "c": 0.16908,
    "h": 302.5
  },
  "luminance": 0.11576
}

Semantic roles & 50–950 ramp

primary
#7945B3
secondary
#ABC48F
accent
#D45497
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7945B3

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

Preview Lab → · Contrast checker → · Palette generator →

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