#7A1E7B#7A1E7B

#7A1E7B is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.166 H 327.6°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#7A1E7B
RGBrgb(122, 30, 123)
HSLhsl(299, 61%, 30%)
HSVhsv(299, 76%, 48%)
CMYKcmyk(0.8%, 75.6%, 0%, 51.8%)
CIE-LABlab(30.63, 50.28, -32.05)
CIE-LCHlch(30.63, 59.63, 327.49°)
OKLaboklab(42.38% 0.1398 -0.0889)
OKLCHoklch(42.38% 0.166 327.6)
XYZxyz(12.0653, 6.4970, 19.3536)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1E7B #1F7B1E
analogous
#4C1E7B #7A1E7B #7B1E4D
triadic
#7A1E7B #7B7A1E #1E7B7A
tetradic
#7A1E7B #7B4C1E #1F7B1E #1E4D7B
square
#7A1E7B #7B4C1E #1F7B1E #1E4D7B
split-complementary
#7A1E7B #4D7B1E #1E7B4C
monochromatic
#180619 #49124A #7A1E7B #AB2AAC #CF42D1

Accessibility & contrast

On white

9.13
#7A1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7A1E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1E7B
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1E7B#FFFFFF#000000##FFFFFF
##7A1E7B1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09417E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#7E2D4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a1e7b;
/* rgb */ color: rgb(122, 30, 123);
/* oklch */ color: oklch(42.4% 0.166 327.6);
Tailwind
colors: {
  custom: {
    50: '#a464a1',
    500: '#7a1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #7a1e7b;
$custom-light: #a464a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1e7b",
  "rgb": {
    "r": 122,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 299.355,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.42384,
    "c": 0.16565,
    "h": 327.6
  },
  "luminance": 0.06496
}

Semantic roles & 50–950 ramp

primary
#7A1E7B
secondary
#47AE46
accent
#E44446
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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