#7C307E#7C307E

#7C307E is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.8% C 0.145 H 326.6°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7C307E
RGBrgb(124, 48, 126)
HSLhsl(298, 45%, 34%)
HSVhsv(298, 62%, 49%)
CMYKcmyk(1.6%, 61.9%, 0%, 50.6%)
CIE-LABlab(33.79, 43.90, -28.92)
CIE-LCHlch(33.79, 52.57, 326.63°)
OKLaboklab(44.78% 0.1214 -0.0799)
OKLCHoklch(44.78% 0.145 326.6)
XYZxyz(13.1348, 7.9062, 20.5688)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C307E #327E30
analogous
#55307E #7C307E #7E3059
triadic
#7C307E #7E7C30 #307E7C
tetradic
#7C307E #7E5530 #327E30 #30597E
square
#7C307E #7E5530 #327E30 #30597E
split-complementary
#7C307E #597E30 #307E55
monochromatic
#250E25 #501F52 #7C307E #A841AA #C264C4

Accessibility & contrast

On white

8.14
#7C307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7C307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C307E
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C307E#FFFFFF#000000##FFFFFF
##7C307E1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264980
Deuteranopia (green-blind)
#40537C
Tritanopia (blue-blind)
#7F3A52
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c307e;
/* rgb */ color: rgb(124, 48, 126);
/* oklch */ color: oklch(44.8% 0.145 326.6);
Tailwind
colors: {
  custom: {
    50: '#a46ea4',
    500: '#7c307e',
    950: '#000000',
  },
}
SCSS
$custom: #7c307e;
$custom-light: #a46ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c307e",
  "rgb": {
    "r": 124,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 298.462,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4478,
    "c": 0.1453,
    "h": 326.6
  },
  "luminance": 0.07905
}

Semantic roles & 50–950 ramp

primary
#7C307E
secondary
#61AB5F
accent
#D55357
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7C307E

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

Preview Lab → · Contrast checker → · Palette generator →

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