#7E1F94#7E1F94

#7E1F94 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.188 H 319.1°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7E1F94
RGBrgb(126, 31, 148)
HSLhsl(289, 65%, 35%)
HSVhsv(289, 79%, 58%)
CMYKcmyk(14.9%, 79.1%, 0%, 42%)
CIE-LABlab(33.04, 55.42, -43.70)
CIE-LCHlch(33.04, 70.58, 321.74°)
OKLaboklab(44.74% 0.1418 -0.1228)
OKLCHoklch(44.74% 0.188 319.1)
XYZxyz(14.4388, 7.5544, 28.7088)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F94 #35941F
analogous
#441F94 #7E1F94 #941F6F
triadic
#7E1F94 #947E1F #1F947E
tetradic
#7E1F94 #94441F #35941F #1F6F94
square
#7E1F94 #94441F #35941F #1F6F94
split-complementary
#7E1F94 #6F941F #1F9444
monochromatic
#280A2F #531461 #7E1F94 #A92AC7 #C153DB

Accessibility & contrast

On white

8.36
#7E1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F94
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F94#FFFFFF#000000##FFFFFF
##7E1F941.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#285191
Tritanopia (blue-blind)
#7E3859
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1f94;
/* rgb */ color: rgb(126, 31, 148);
/* oklch */ color: oklch(44.7% 0.188 319.1);
Tailwind
colors: {
  custom: {
    50: '#a767b4',
    500: '#7e1f94',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f94;
$custom-light: #a767b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f94",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 288.718,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4474,
    "c": 0.18756,
    "h": 319.1
  },
  "luminance": 0.07554
}

Semantic roles & 50–950 ramp

primary
#7E1F94
secondary
#65BE51
accent
#E83F5F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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