#7945B2#7945B2

#7945B2 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.6% C 0.168 H 302.8°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7945B2
RGBrgb(121, 69, 178)
HSLhsl(269, 44%, 48%)
HSVhsv(269, 61%, 70%)
CMYKcmyk(32%, 61.2%, 0%, 30.2%)
CIE-LABlab(40.47, 43.99, -49.81)
CIE-LCHlch(40.47, 66.45, 311.44°)
OKLaboklab(50.57% 0.091 -0.1411)
OKLCHoklch(50.57% 0.168 302.8)
XYZxyz(18.0473, 11.5355, 43.3866)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945B2 #7EB245
analogous
#4547B2 #7945B2 #AF45B2
triadic
#7945B2 #B27945 #45B279
tetradic
#7945B2 #B24547 #7EB245 #45B2AF
square
#7945B2 #B24547 #7EB245 #45B2AF
split-complementary
#7945B2 #B2AF45 #47B245
monochromatic
#3D235A #5B3486 #7945B2 #986EC7 #B79AD8

Accessibility & contrast

On white

6.35
#7945B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7945B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945B2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945B2#FFFFFF#000000##FFFFFF
##7945B21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025EB5
Deuteranopia (green-blind)
#275FB0
Tritanopia (blue-blind)
#6E5C75
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7945b2;
/* rgb */ color: rgb(121, 69, 178);
/* oklch */ color: oklch(50.6% 0.168 302.8);
Tailwind
colors: {
  custom: {
    50: '#a37bca',
    500: '#7945b2',
    950: '#000000',
  },
}
SCSS
$custom: #7945b2;
$custom-light: #a37bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7945b2",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 268.624,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50566,
    "c": 0.16791,
    "h": 302.8
  },
  "luminance": 0.11536
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7945B2

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

Preview Lab → · Contrast checker → · Palette generator →

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