#7B47CC#7B47CC

#7B47CC is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.196 H 297.2°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7B47CC
RGBrgb(123, 71, 204)
HSLhsl(263, 57%, 54%)
HSVhsv(263, 65%, 80%)
CMYKcmyk(39.7%, 65.2%, 0%, 20%)
CIE-LABlab(42.88, 50.00, -61.09)
CIE-LCHlch(42.88, 78.94, 309.30°)
OKLaboklab(52.93% 0.0895 -0.1742)
OKLCHoklch(52.93% 0.196 297.2)
XYZxyz(21.3179, 13.0767, 58.5159)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B47CC #98CC47
analogous
#4756CC #7B47CC #BE47CC
triadic
#7B47CC #CC7B47 #47CC7B
tetradic
#7B47CC #CC4756 #98CC47 #47CCBE
square
#7B47CC #CC4756 #98CC47 #47CCBE
split-complementary
#7B47CC #CCBE47 #56CC47
monochromatic
#432177 #5E2EA7 #7B47CC #9D77D9 #C0A7E7

Accessibility & contrast

On white

5.81
#7B47CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7B47CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B47CC
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B47CC#FFFFFF#000000##FFFFFF
##7B47CC1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#0064C9
Tritanopia (blue-blind)
#676683
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b47cc;
/* rgb */ color: rgb(123, 71, 204);
/* oklch */ color: oklch(52.9% 0.196 297.2);
Tailwind
colors: {
  custom: {
    50: '#a77ddc',
    500: '#7b47cc',
    950: '#000000',
  },
}
SCSS
$custom: #7b47cc;
$custom-light: #a77ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b47cc",
  "rgb": {
    "r": 123,
    "g": 71,
    "b": 204
  },
  "hsl": {
    "h": 263.459,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52931,
    "c": 0.19583,
    "h": 297.2
  },
  "luminance": 0.13077
}

Semantic roles & 50–950 ramp

primary
#7B47CC
secondary
#BED49B
accent
#E048A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B47CC

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

Preview Lab → · Contrast checker → · Palette generator →

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