#7E2A90#7E2A90

#7E2A90 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.171 H 320.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7E2A90
RGBrgb(126, 42, 144)
HSLhsl(289, 55%, 36%)
HSVhsv(289, 71%, 56%)
CMYKcmyk(12.5%, 70.8%, 0%, 43.5%)
CIE-LABlab(34.20, 50.56, -39.38)
CIE-LCHlch(34.20, 64.09, 322.09°)
OKLaboklab(45.48% 0.1314 -0.1102)
OKLCHoklch(45.48% 0.171 320)
XYZxyz(14.4656, 8.1059, 27.1828)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A90 #3C902A
analogous
#4B2A90 #7E2A90 #902A6F
triadic
#7E2A90 #907E2A #2A907E
tetradic
#7E2A90 #904B2A #3C902A #2A6F90
square
#7E2A90 #904B2A #3C902A #2A6F90
split-complementary
#7E2A90 #6F902A #2A904B
monochromatic
#2B0E31 #551C61 #7E2A90 #A738BF #BE63D1

Accessibility & contrast

On white

8.01
#7E2A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E2A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A90
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A90#FFFFFF#000000##FFFFFF
##7E2A901.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B93
Deuteranopia (green-blind)
#33538E
Tritanopia (blue-blind)
#7E3D5A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2a90;
/* rgb */ color: rgb(126, 42, 144);
/* oklch */ color: oklch(45.5% 0.171 320.0);
Tailwind
colors: {
  custom: {
    50: '#a76bb1',
    500: '#7e2a90',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a90;
$custom-light: #a76bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a90",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 289.412,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45484,
    "c": 0.17149,
    "h": 320
  },
  "luminance": 0.08105
}

Semantic roles & 50–950 ramp

primary
#7E2A90
secondary
#6EB75E
accent
#DE4A64
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2A90

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

Preview Lab → · Contrast checker → · Palette generator →

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