#7C308D#7C308D

#7C308D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.160 H 319.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7C308D
RGBrgb(124, 48, 141)
HSLhsl(289, 49%, 37%)
HSVhsv(289, 66%, 55%)
CMYKcmyk(12.1%, 66%, 0%, 44.7%)
CIE-LABlab(34.65, 46.86, -36.84)
CIE-LCHlch(34.65, 59.61, 321.82°)
OKLaboklab(45.68% 0.122 -0.1029)
OKLCHoklch(45.68% 0.16 319.8)
XYZxyz(14.1763, 8.3227, 26.0539)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C308D #418D30
analogous
#4E308D #7C308D #8D3070
triadic
#7C308D #8D7C30 #308D7C
tetradic
#7C308D #8D4E30 #418D30 #30708D
square
#7C308D #8D4E30 #418D30 #30708D
split-complementary
#7C308D #708D30 #308D4E
monochromatic
#2C1132 #54205F #7C308D #A440BB #BB6BCD

Accessibility & contrast

On white

7.88
#7C308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C308D
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C308D#FFFFFF#000000##FFFFFF
##7C308D1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144C90
Deuteranopia (green-blind)
#37548B
Tritanopia (blue-blind)
#7C405A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c308d;
/* rgb */ color: rgb(124, 48, 141);
/* oklch */ color: oklch(45.7% 0.160 319.8);
Tailwind
colors: {
  custom: {
    50: '#a56eaf',
    500: '#7c308d',
    950: '#000000',
  },
}
SCSS
$custom: #7c308d;
$custom-light: #a56eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c308d",
  "rgb": {
    "r": 124,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 289.032,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45681,
    "c": 0.15959,
    "h": 319.8
  },
  "luminance": 0.08322
}

Semantic roles & 50–950 ramp

primary
#7C308D
secondary
#73B465
accent
#D94F68
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C308D

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

Preview Lab → · Contrast checker → · Palette generator →

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