#7E307B#7E307B

#7E307B is a dark, vivid purple. Relative luminance 0.080; OKLCH L 44.9% C 0.144 H 329.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7E307B
RGBrgb(126, 48, 123)
HSLhsl(302, 45%, 34%)
HSVhsv(302, 62%, 49%)
CMYKcmyk(0%, 61.9%, 2.4%, 50.6%)
CIE-LABlab(33.94, 43.90, -26.78)
CIE-LCHlch(33.94, 51.42, 328.62°)
OKLaboklab(44.91% 0.1235 -0.0737)
OKLCHoklch(44.91% 0.144 329.2)
XYZxyz(13.2362, 7.9805, 19.5783)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E307B #307E33
analogous
#5A307E #7E307B #7E3054
triadic
#7E307B #7B7E30 #307B7E
tetradic
#7E307B #7E5A30 #307E33 #30547E
square
#7E307B #7E5A30 #307E33 #30547E
split-complementary
#7E307B #547E30 #307E5A
monochromatic
#250E24 #521F50 #7E307B #AA41A6 #C464C0

Accessibility & contrast

On white

8.09
#7E307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E307B
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E307B#FFFFFF#000000##FFFFFF
##7E307B1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29497D
Deuteranopia (green-blind)
#435479
Tritanopia (blue-blind)
#823951
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e307b;
/* rgb */ color: rgb(126, 48, 123);
/* oklch */ color: oklch(44.9% 0.144 329.2);
Tailwind
colors: {
  custom: {
    50: '#a66ea1',
    500: '#7e307b',
    950: '#000000',
  },
}
SCSS
$custom: #7e307b;
$custom-light: #a66ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e307b",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 302.308,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44905,
    "c": 0.14378,
    "h": 329.2
  },
  "luminance": 0.0798
}

Semantic roles & 50–950 ramp

primary
#7E307B
secondary
#5FAB62
accent
#D55853
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7E307B

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

Preview Lab → · Contrast checker → · Palette generator →

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