#7945CB#7945CB

#7945CB is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.197 H 296.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7945CB
RGBrgb(121, 69, 203)
HSLhsl(263, 56%, 53%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(40.4%, 66%, 0%, 20.4%)
CIE-LABlab(42.20, 50.38, -61.62)
CIE-LCHlch(42.20, 79.59, 309.27°)
OKLaboklab(52.37% 0.089 -0.1758)
OKLCHoklch(52.37% 0.197 296.8)
XYZxyz(20.7900, 12.6326, 57.8313)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945CB #97CB45
analogous
#4554CB #7945CB #BC45CB
triadic
#7945CB #CB7945 #45CB79
tetradic
#7945CB #CB4554 #97CB45 #45CBBC
square
#7945CB #CB4554 #97CB45 #45CBBC
split-complementary
#7945CB #CBBC45 #54CB45
monochromatic
#412175 #5C2EA5 #7945CB #9B75D8 #BEA5E6

Accessibility & contrast

On white

5.95
#7945CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7945CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945CB
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945CB#FFFFFF#000000##FFFFFF
##7945CB1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0062C8
Tritanopia (blue-blind)
#646482
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7945cb;
/* rgb */ color: rgb(121, 69, 203);
/* oklch */ color: oklch(52.4% 0.197 296.8);
Tailwind
colors: {
  custom: {
    50: '#a67cdc',
    500: '#7945cb',
    950: '#000000',
  },
}
SCSS
$custom: #7945cb;
$custom-light: #a67cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7945cb",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 263.284,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52372,
    "c": 0.19704,
    "h": 296.8
  },
  "luminance": 0.12633
}

Semantic roles & 50–950 ramp

primary
#7945CB
secondary
#BCD399
accent
#E048A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7945CB

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

Preview Lab → · Contrast checker → · Palette generator →

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