#7E306C#7E306C

#7E306C is a dark, vivid pink. Relative luminance 0.076; OKLCH L 44.1% C 0.131 H 337.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7E306C
RGBrgb(126, 48, 108)
HSLhsl(314, 45%, 34%)
HSVhsv(314, 62%, 49%)
CMYKcmyk(0%, 61.9%, 14.3%, 50.6%)
CIE-LABlab(33.21, 41.27, -18.47)
CIE-LCHlch(33.21, 45.22, 335.89°)
OKLaboklab(44.13% 0.1212 -0.0499)
OKLCHoklch(44.13% 0.131 337.6)
XYZxyz(12.3681, 7.6332, 15.0064)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E306C #307E42
analogous
#69307E #7E306C #7E3045
triadic
#7E306C #6C7E30 #306C7E
tetradic
#7E306C #7E6930 #307E42 #30457E
square
#7E306C #7E6930 #307E42 #30457E
split-complementary
#7E306C #457E30 #307E69
monochromatic
#250E20 #521F46 #7E306C #AA4192 #C464AE

Accessibility & contrast

On white

8.31
#7E306C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E306C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E306C
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E306C#FFFFFF#000000##FFFFFF
##7E306C1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32466E
Deuteranopia (green-blind)
#4A526A
Tritanopia (blue-blind)
#853349
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e306c;
/* rgb */ color: rgb(126, 48, 108);
/* oklch */ color: oklch(44.1% 0.131 337.6);
Tailwind
colors: {
  custom: {
    50: '#a66d96',
    500: '#7e306c',
    950: '#000000',
  },
}
SCSS
$custom: #7e306c;
$custom-light: #a66d96;
$custom-dark: #000000;
JSON
{
  "hex": "#7e306c",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 108
  },
  "hsl": {
    "h": 313.846,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44127,
    "c": 0.13105,
    "h": 337.6
  },
  "luminance": 0.07632
}

Semantic roles & 50–950 ramp

primary
#7E306C
secondary
#5FAB70
accent
#D57153
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7E306C

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

Preview Lab → · Contrast checker → · Palette generator →

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