#7C338B#7C338B

#7C338B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.9% C 0.153 H 320.5°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7C338B
RGBrgb(124, 51, 139)
HSLhsl(290, 46%, 37%)
HSVhsv(290, 63%, 55%)
CMYKcmyk(10.8%, 63.3%, 0%, 45.5%)
CIE-LABlab(35.04, 45.04, -34.99)
CIE-LCHlch(35.04, 57.04, 322.16°)
OKLaboklab(45.93% 0.1182 -0.0975)
OKLCHoklch(45.93% 0.153 320.5)
XYZxyz(14.1557, 8.5175, 25.3195)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C338B #428B33
analogous
#50338B #7C338B #8B336E
triadic
#7C338B #8B7C33 #338B7C
tetradic
#7C338B #8B5033 #428B33 #336E8B
square
#7C338B #8B5033 #428B33 #336E8B
split-complementary
#7C338B #6E8B33 #338B50
monochromatic
#2C1231 #54235E #7C338B #A443B8 #BA6ECA

Accessibility & contrast

On white

7.77
#7C338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7C338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C338B
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C338B#FFFFFF#000000##FFFFFF
##7C338B1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8E
Deuteranopia (green-blind)
#3B5589
Tritanopia (blue-blind)
#7D415A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c338b;
/* rgb */ color: rgb(124, 51, 139);
/* oklch */ color: oklch(45.9% 0.153 320.5);
Tailwind
colors: {
  custom: {
    50: '#a470ad',
    500: '#7c338b',
    950: '#000000',
  },
}
SCSS
$custom: #7c338b;
$custom-light: #a470ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c338b",
  "rgb": {
    "r": 124,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 289.773,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45927,
    "c": 0.15323,
    "h": 320.5
  },
  "luminance": 0.08517
}

Semantic roles & 50–950 ramp

primary
#7C338B
secondary
#75B268
accent
#D65268
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7C338B

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

Preview Lab → · Contrast checker → · Palette generator →

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