#7E209B#7E209B

#7E209B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.193 H 316.5°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7E209B
RGBrgb(126, 32, 155)
HSLhsl(286, 66%, 37%)
HSVhsv(286, 79%, 61%)
CMYKcmyk(18.7%, 79.4%, 0%, 39.2%)
CIE-LABlab(33.64, 56.46, -47.01)
CIE-LCHlch(33.64, 73.47, 320.22°)
OKLaboklab(45.32% 0.1399 -0.1325)
OKLCHoklch(45.32% 0.193 316.5)
XYZxyz(15.0362, 7.8358, 31.7244)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E209B #3D9B20
analogous
#41209B #7E209B #9B207B
triadic
#7E209B #9B7E20 #209B7E
tetradic
#7E209B #9B4120 #3D9B20 #207B9B
square
#7E209B #9B4120 #3D9B20 #207B9B
split-complementary
#7E209B #7B9B20 #209B41
monochromatic
#2C0B36 #551668 #7E209B #A72ACE #BE59DD

Accessibility & contrast

On white

8.18
#7E209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E209B
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E209B#FFFFFF#000000##FFFFFF
##7E209B1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#205298
Tritanopia (blue-blind)
#7C3C5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e209b;
/* rgb */ color: rgb(126, 32, 155);
/* oklch */ color: oklch(45.3% 0.193 316.5);
Tailwind
colors: {
  custom: {
    50: '#a867b9',
    500: '#7e209b',
    950: '#000000',
  },
}
SCSS
$custom: #7e209b;
$custom-light: #a867b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e209b",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 285.854,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45319,
    "c": 0.19267,
    "h": 316.5
  },
  "luminance": 0.07835
}

Semantic roles & 50–950 ramp

primary
#7E209B
secondary
#6FC156
accent
#E93F67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E209B

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

Preview Lab → · Contrast checker → · Palette generator →

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