#7E306E#7E306E

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

Color values

HEX#7E306E
RGBrgb(126, 48, 110)
HSLhsl(312, 45%, 34%)
HSVhsv(312, 62%, 49%)
CMYKcmyk(0%, 61.9%, 12.7%, 50.6%)
CIE-LABlab(33.30, 41.61, -19.59)
CIE-LCHlch(33.30, 45.99, 334.78°)
OKLaboklab(44.22% 0.1216 -0.0531)
OKLCHoklch(44.22% 0.133 336.4)
XYZxyz(12.4757, 7.6763, 15.5734)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E306E #307E40
analogous
#67307E #7E306E #7E3047
triadic
#7E306E #6E7E30 #306E7E
tetradic
#7E306E #7E6730 #307E40 #30477E
square
#7E306E #7E6730 #307E40 #30477E
split-complementary
#7E306E #477E30 #307E67
monochromatic
#250E21 #521F47 #7E306E #AA4195 #C464B0

Accessibility & contrast

On white

8.28
#7E306E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E306E
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E306E#FFFFFF#000000##FFFFFF
##7E306E1.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314770
Deuteranopia (green-blind)
#49536C
Tritanopia (blue-blind)
#84344A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e306e;
/* rgb */ color: rgb(126, 48, 110);
/* oklch */ color: oklch(44.2% 0.133 336.4);
Tailwind
colors: {
  custom: {
    50: '#a66d97',
    500: '#7e306e',
    950: '#000000',
  },
}
SCSS
$custom: #7e306e;
$custom-light: #a66d97;
$custom-dark: #000000;
JSON
{
  "hex": "#7e306e",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 110
  },
  "hsl": {
    "h": 312.308,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44225,
    "c": 0.13266,
    "h": 336.4
  },
  "luminance": 0.07675
}

Semantic roles & 50–950 ramp

primary
#7E306E
secondary
#5FAB6E
accent
#D56E53
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7E306E

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

Preview Lab → · Contrast checker → · Palette generator →

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