#7B47CA#7B47CA

#7B47CA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.8% C 0.194 H 297.6°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7B47CA
RGBrgb(123, 71, 202)
HSLhsl(264, 55%, 54%)
HSVhsv(264, 65%, 79%)
CMYKcmyk(39.1%, 64.9%, 0%, 20.8%)
CIE-LABlab(42.74, 49.48, -60.17)
CIE-LCHlch(42.74, 77.90, 309.44°)
OKLaboklab(52.78% 0.0897 -0.1715)
OKLCHoklch(52.78% 0.194 297.6)
XYZxyz(21.0796, 12.9814, 57.2607)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B47CA #96CA47
analogous
#4754CA #7B47CA #BC47CA
triadic
#7B47CA #CA7B47 #47CA7B
tetradic
#7B47CA #CA4754 #96CA47 #47CABC
square
#7B47CA #CA4754 #96CA47 #47CABC
split-complementary
#7B47CA #CABC47 #54CA47
monochromatic
#432275 #5E2FA4 #7B47CA #9D77D8 #BFA6E5

Accessibility & contrast

On white

5.84
#7B47CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7B47CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B47CA
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B47CA#FFFFFF#000000##FFFFFF
##7B47CA1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#686582
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b47ca;
/* rgb */ color: rgb(123, 71, 202);
/* oklch */ color: oklch(52.8% 0.194 297.6);
Tailwind
colors: {
  custom: {
    50: '#a77ddb',
    500: '#7b47ca',
    950: '#000000',
  },
}
SCSS
$custom: #7b47ca;
$custom-light: #a77ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b47ca",
  "rgb": {
    "r": 123,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 263.817,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52782,
    "c": 0.19352,
    "h": 297.6
  },
  "luminance": 0.12982
}

Semantic roles & 50–950 ramp

primary
#7B47CA
secondary
#BCD29A
accent
#DF49A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B47CA

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

Preview Lab → · Contrast checker → · Palette generator →

#7B47CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva