#7E209C#7E209C

#7E209C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.194 H 316.2°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7E209C
RGBrgb(126, 32, 156)
HSLhsl(285, 66%, 37%)
HSVhsv(285, 79%, 61%)
CMYKcmyk(19.2%, 79.5%, 0%, 38.8%)
CIE-LABlab(33.71, 56.66, -47.50)
CIE-LCHlch(33.71, 73.93, 320.03°)
OKLaboklab(45.39% 0.1397 -0.1339)
OKLCHoklch(45.39% 0.194 316.2)
XYZxyz(15.1205, 7.8696, 32.1685)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E209C #3E9C20
analogous
#40209C #7E209C #9C207C
triadic
#7E209C #9C7E20 #209C7E
tetradic
#7E209C #9C4020 #3E9C20 #207C9C
square
#7E209C #9C4020 #3E9C20 #207C9C
split-complementary
#7E209C #7C9C20 #209C40
monochromatic
#2C0B36 #551669 #7E209C #A72ACF #BD59DD

Accessibility & contrast

On white

8.16
#7E209C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E209C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E209C
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E209C#FFFFFF#000000##FFFFFF
##7E209C1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#1E5299
Tritanopia (blue-blind)
#7C3D5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e209c;
/* rgb */ color: rgb(126, 32, 156);
/* oklch */ color: oklch(45.4% 0.194 316.2);
Tailwind
colors: {
  custom: {
    50: '#a867ba',
    500: '#7e209c',
    950: '#000000',
  },
}
SCSS
$custom: #7e209c;
$custom-light: #a867ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e209c",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 156
  },
  "hsl": {
    "h": 285.484,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45391,
    "c": 0.19354,
    "h": 316.2
  },
  "luminance": 0.07869
}

Semantic roles & 50–950 ramp

primary
#7E209C
secondary
#70C157
accent
#E93F68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E209C

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

Preview Lab → · Contrast checker → · Palette generator →

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