#7E1F8B#7E1F8B

#7E1F8B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.180 H 322.5°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#7E1F8B
RGBrgb(126, 31, 139)
HSLhsl(293, 64%, 33%)
HSVhsv(293, 78%, 55%)
CMYKcmyk(9.4%, 77.7%, 0%, 45.5%)
CIE-LABlab(32.44, 53.72, -39.12)
CIE-LCHlch(32.44, 66.46, 323.94°)
OKLaboklab(44.12% 0.1428 -0.1094)
OKLCHoklch(44.12% 0.18 322.5)
XYZxyz(13.7539, 7.2805, 25.1019)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F8B #2C8B1F
analogous
#481F8B #7E1F8B #8B1F62
triadic
#7E1F8B #8B7E1F #1F8B7E
tetradic
#7E1F8B #8B481F #2C8B1F #1F628B
square
#7E1F8B #8B481F #2C8B1F #1F628B
split-complementary
#7E1F8B #628B1F #1F8B48
monochromatic
#230927 #511459 #7E1F8B #AB2ABD #C74DD7

Accessibility & contrast

On white

8.55
#7E1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7E1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F8B
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F8B#FFFFFF#000000##FFFFFF
##7E1F8B1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#305089
Tritanopia (blue-blind)
#803454
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1f8b;
/* rgb */ color: rgb(126, 31, 139);
/* oklch */ color: oklch(44.1% 0.180 322.5);
Tailwind
colors: {
  custom: {
    50: '#a766ad',
    500: '#7e1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f8b;
$custom-light: #a766ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f8b",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 292.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44123,
    "c": 0.17985,
    "h": 322.5
  },
  "luminance": 0.0728
}

Semantic roles & 50–950 ramp

primary
#7E1F8B
secondary
#59BA4C
accent
#E74155
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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