#7E307E#7E307E

#7E307E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.1% C 0.146 H 327.7°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7E307E
RGBrgb(126, 48, 126)
HSLhsl(300, 45%, 34%)
HSVhsv(300, 62%, 49%)
CMYKcmyk(0%, 61.9%, 0%, 50.6%)
CIE-LABlab(34.10, 44.45, -28.40)
CIE-LCHlch(34.10, 52.75, 327.42°)
OKLaboklab(45.07% 0.1238 -0.0783)
OKLCHoklch(45.07% 0.146 327.7)
XYZxyz(13.4268, 8.0567, 20.5825)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E307E #307E30
analogous
#57307E #7E307E #7E3057
triadic
#7E307E #7E7E30 #307E7E
tetradic
#7E307E #7E5730 #307E30 #30577E
square
#7E307E #7E5730 #307E30 #30577E
split-complementary
#7E307E #577E30 #307E57
monochromatic
#250E25 #521F52 #7E307E #AA41AA #C464C4

Accessibility & contrast

On white

8.04
#7E307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E307E
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E307E#FFFFFF#000000##FFFFFF
##7E307E1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274A80
Deuteranopia (green-blind)
#42547C
Tritanopia (blue-blind)
#823A52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e307e;
/* rgb */ color: rgb(126, 48, 126);
/* oklch */ color: oklch(45.1% 0.146 327.7);
Tailwind
colors: {
  custom: {
    50: '#a66ea3',
    500: '#7e307e',
    950: '#000000',
  },
}
SCSS
$custom: #7e307e;
$custom-light: #a66ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e307e",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45072,
    "c": 0.14649,
    "h": 327.7
  },
  "luminance": 0.08056
}

Semantic roles & 50–950 ramp

primary
#7E307E
secondary
#5FAB5F
accent
#D55353
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E307E

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

Preview Lab → · Contrast checker → · Palette generator →

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