#7C308F#7C308F

#7C308F is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.8% C 0.162 H 319.0°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7C308F
RGBrgb(124, 48, 143)
HSLhsl(288, 50%, 37%)
HSVhsv(288, 66%, 56%)
CMYKcmyk(13.3%, 66.4%, 0%, 43.9%)
CIE-LABlab(34.77, 47.27, -37.88)
CIE-LCHlch(34.77, 60.57, 321.29°)
OKLaboklab(45.81% 0.122 -0.1059)
OKLCHoklch(45.81% 0.162 319)
XYZxyz(14.3264, 8.3828, 26.8447)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C308F #438F30
analogous
#4D308F #7C308F #8F3072
triadic
#7C308F #8F7C30 #308F7C
tetradic
#7C308F #8F4D30 #438F30 #30728F
square
#7C308F #8F4D30 #438F30 #30728F
split-complementary
#7C308F #728F30 #308F4D
monochromatic
#2D1133 #542161 #7C308F #A43FBD #BA6CCE

Accessibility & contrast

On white

7.85
#7C308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7C308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C308F
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C308F#FFFFFF#000000##FFFFFF
##7C308F1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114D92
Deuteranopia (green-blind)
#36548D
Tritanopia (blue-blind)
#7C415B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c308f;
/* rgb */ color: rgb(124, 48, 143);
/* oklch */ color: oklch(45.8% 0.162 319.0);
Tailwind
colors: {
  custom: {
    50: '#a56eb0',
    500: '#7c308f',
    950: '#000000',
  },
}
SCSS
$custom: #7c308f;
$custom-light: #a56eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c308f",
  "rgb": {
    "r": 124,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 288,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45808,
    "c": 0.16155,
    "h": 319
  },
  "luminance": 0.08382
}

Semantic roles & 50–950 ramp

primary
#7C308F
secondary
#76B566
accent
#D94F6A
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C308F

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

Preview Lab → · Contrast checker → · Palette generator →

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