#7E306F#7E306F

#7E306F is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.3% C 0.133 H 335.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7E306F
RGBrgb(126, 48, 111)
HSLhsl(312, 45%, 34%)
HSVhsv(312, 62%, 49%)
CMYKcmyk(0%, 61.9%, 11.9%, 50.6%)
CIE-LABlab(33.35, 41.78, -20.16)
CIE-LCHlch(33.35, 46.38, 334.24°)
OKLaboklab(44.28% 0.1217 -0.0547)
OKLCHoklch(44.28% 0.133 335.8)
XYZxyz(12.5305, 7.6982, 15.8618)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E306F #307E3F
analogous
#66307E #7E306F #7E3048
triadic
#7E306F #6F7E30 #306F7E
tetradic
#7E306F #7E6630 #307E3F #30487E
square
#7E306F #7E6630 #307E3F #30487E
split-complementary
#7E306F #487E30 #307E66
monochromatic
#250E21 #521F48 #7E306F #AA4196 #C464B2

Accessibility & contrast

On white

8.27
#7E306F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E306F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E306F
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E306F#FFFFFF#000000##FFFFFF
##7E306F1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314771
Deuteranopia (green-blind)
#49536D
Tritanopia (blue-blind)
#84344B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e306f;
/* rgb */ color: rgb(126, 48, 111);
/* oklch */ color: oklch(44.3% 0.133 335.8);
Tailwind
colors: {
  custom: {
    50: '#a66d98',
    500: '#7e306f',
    950: '#000000',
  },
}
SCSS
$custom: #7e306f;
$custom-light: #a66d98;
$custom-dark: #000000;
JSON
{
  "hex": "#7e306f",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 111
  },
  "hsl": {
    "h": 311.538,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44275,
    "c": 0.13347,
    "h": 335.8
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

primary
#7E306F
secondary
#5FAB6D
accent
#D56C53
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7E306F

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

Preview Lab → · Contrast checker → · Palette generator →

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