#7C339E#7C339E

#7C339E is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.172 H 313.1°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7C339E
RGBrgb(124, 51, 158)
HSLhsl(281, 51%, 41%)
HSVhsv(281, 68%, 62%)
CMYKcmyk(21.5%, 67.7%, 0%, 38%)
CIE-LABlab(36.22, 49.07, -44.69)
CIE-LCHlch(36.22, 66.37, 317.68°)
OKLaboklab(47.16% 0.1178 -0.1259)
OKLCHoklch(47.16% 0.172 313.1)
XYZxyz(15.6665, 9.1218, 33.2765)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C339E #559E33
analogous
#47339E #7C339E #9E338A
triadic
#7C339E #9E7C33 #339E7C
tetradic
#7C339E #9E4733 #559E33 #338A9E
square
#7C339E #9E4733 #559E33 #338A9E
split-complementary
#7C339E #8A9E33 #339E47
monochromatic
#331541 #582470 #7C339E #9D4AC4 #B678D3

Accessibility & contrast

On white

7.44
#7C339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7C339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C339E
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C339E#FFFFFF#000000##FFFFFF
##7C339E1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A1
Deuteranopia (green-blind)
#2B579C
Tritanopia (blue-blind)
#784864
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c339e;
/* rgb */ color: rgb(124, 51, 158);
/* oklch */ color: oklch(47.2% 0.172 313.1);
Tailwind
colors: {
  custom: {
    50: '#a570bb',
    500: '#7c339e',
    950: '#000000',
  },
}
SCSS
$custom: #7c339e;
$custom-light: #a570bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c339e",
  "rgb": {
    "r": 124,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 280.935,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47157,
    "c": 0.17239,
    "h": 313.1
  },
  "luminance": 0.09121
}

Semantic roles & 50–950 ramp

primary
#7C339E
secondary
#89BC71
accent
#DB4D7A
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C339E

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

Preview Lab → · Contrast checker → · Palette generator →

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