#7C308C#7C308C

#7C308C is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.159 H 320.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7C308C
RGBrgb(124, 48, 140)
HSLhsl(290, 49%, 37%)
HSVhsv(290, 66%, 55%)
CMYKcmyk(11.4%, 65.7%, 0%, 45.1%)
CIE-LABlab(34.59, 46.66, -36.33)
CIE-LCHlch(34.59, 59.13, 322.10°)
OKLaboklab(45.62% 0.122 -0.1014)
OKLCHoklch(45.62% 0.159 320.3)
XYZxyz(14.1022, 8.2931, 25.6638)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C308C #408C30
analogous
#4E308C #7C308C #8C306E
triadic
#7C308C #8C7C30 #308C7C
tetradic
#7C308C #8C4E30 #408C30 #306E8C
square
#7C308C #8C4E30 #408C30 #306E8C
split-complementary
#7C308C #6E8C30 #308C4E
monochromatic
#2B1131 #54205E #7C308C #A440BA #BB6ACC

Accessibility & contrast

On white

7.90
#7C308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7C308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C308C
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C308C#FFFFFF#000000##FFFFFF
##7C308C1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164C8F
Deuteranopia (green-blind)
#38548A
Tritanopia (blue-blind)
#7D3F5A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c308c;
/* rgb */ color: rgb(124, 48, 140);
/* oklch */ color: oklch(45.6% 0.159 320.3);
Tailwind
colors: {
  custom: {
    50: '#a56eae',
    500: '#7c308c',
    950: '#000000',
  },
}
SCSS
$custom: #7c308c;
$custom-light: #a56eae;
$custom-dark: #000000;
JSON
{
  "hex": "#7c308c",
  "rgb": {
    "r": 124,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 289.565,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45619,
    "c": 0.15862,
    "h": 320.3
  },
  "luminance": 0.08292
}

Semantic roles & 50–950 ramp

primary
#7C308C
secondary
#72B364
accent
#D84F67
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C308C

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

Preview Lab → · Contrast checker → · Palette generator →

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