#7947CB#7947CB

#7947CB is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.194 H 296.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7947CB
RGBrgb(121, 71, 203)
HSLhsl(263, 56%, 54%)
HSVhsv(263, 65%, 80%)
CMYKcmyk(40.4%, 65%, 0%, 20.4%)
CIE-LABlab(42.59, 49.34, -61.00)
CIE-LCHlch(42.59, 78.45, 308.97°)
OKLaboklab(52.65% 0.0868 -0.174)
OKLCHoklch(52.65% 0.194 296.5)
XYZxyz(20.9151, 12.8828, 57.8730)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7947CB #99CB47
analogous
#4757CB #7947CB #BB47CB
triadic
#7947CB #CB7947 #47CB79
tetradic
#7947CB #CB4757 #99CB47 #47CBBB
square
#7947CB #CB4757 #99CB47 #47CBBB
split-complementary
#7947CB #CBBB47 #57CB47
monochromatic
#422176 #5C2FA6 #7947CB #9C77D8 #BEA6E6

Accessibility & contrast

On white

5.87
#7947CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7947CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7947CB
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7947CB#FFFFFF#000000##FFFFFF
##7947CB1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#646683
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7947cb;
/* rgb */ color: rgb(121, 71, 203);
/* oklch */ color: oklch(52.6% 0.194 296.5);
Tailwind
colors: {
  custom: {
    50: '#a67ddc',
    500: '#7947cb',
    950: '#000000',
  },
}
SCSS
$custom: #7947cb;
$custom-light: #a67ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7947cb",
  "rgb": {
    "r": 121,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 262.727,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52647,
    "c": 0.19447,
    "h": 296.5
  },
  "luminance": 0.12883
}

Semantic roles & 50–950 ramp

primary
#7947CB
secondary
#BED39B
accent
#DF49A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7947CB

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

Preview Lab → · Contrast checker → · Palette generator →

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