#7C337E#7C337E

#7C337E is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.2% C 0.141 H 326.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7C337E
RGBrgb(124, 51, 126)
HSLhsl(298, 42%, 35%)
HSVhsv(298, 60%, 49%)
CMYKcmyk(1.6%, 59.5%, 0%, 50.6%)
CIE-LABlab(34.31, 42.46, -28.09)
CIE-LCHlch(34.31, 50.91, 326.52°)
OKLaboklab(45.16% 0.1173 -0.0775)
OKLCHoklch(45.16% 0.141 326.6)
XYZxyz(13.2617, 8.1599, 20.6111)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C337E #357E33
analogous
#57337E #7C337E #7E335B
triadic
#7C337E #7E7C33 #337E7C
tetradic
#7C337E #7E5733 #357E33 #335B7E
square
#7C337E #7E5733 #357E33 #335B7E
split-complementary
#7C337E #5B7E33 #337E57
monochromatic
#261027 #512152 #7C337E #A745AA #C069C2

Accessibility & contrast

On white

7.98
#7C337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7C337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C337E
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C337E#FFFFFF#000000##FFFFFF
##7C337E1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B80
Deuteranopia (green-blind)
#42547C
Tritanopia (blue-blind)
#7F3C53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c337e;
/* rgb */ color: rgb(124, 51, 126);
/* oklch */ color: oklch(45.2% 0.141 326.6);
Tailwind
colors: {
  custom: {
    50: '#a46fa3',
    500: '#7c337e',
    950: '#000000',
  },
}
SCSS
$custom: #7c337e;
$custom-light: #a46fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c337e",
  "rgb": {
    "r": 124,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 298.4,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45164,
    "c": 0.14062,
    "h": 326.6
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#7C337E
secondary
#65AA63
accent
#D25659
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F080F
muted
#7F7B7F

Preview Lab

Preview with #7C337E

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

Preview Lab → · Contrast checker → · Palette generator →

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