#7A1F98#7A1F98

#7A1F98 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.190 H 315.9°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7A1F98
RGBrgb(122, 31, 152)
HSLhsl(285, 66%, 36%)
HSVhsv(285, 80%, 60%)
CMYKcmyk(19.7%, 79.6%, 0%, 40.4%)
CIE-LABlab(32.67, 55.43, -46.78)
CIE-LCHlch(32.67, 72.53, 319.84°)
OKLaboklab(44.44% 0.1361 -0.132)
OKLCHoklch(44.44% 0.19 315.9)
XYZxyz(14.1826, 7.3851, 30.3781)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F98 #3D981F
analogous
#3D1F98 #7A1F98 #981F79
triadic
#7A1F98 #987A1F #1F987A
tetradic
#7A1F98 #983D1F #3D981F #1F7998
square
#7A1F98 #983D1F #3D981F #1F7998
split-complementary
#7A1F98 #79981F #1F983D
monochromatic
#280A32 #511565 #7A1F98 #A329CB #BB55DC

Accessibility & contrast

On white

8.48
#7A1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7A1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F98
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F98#FFFFFF#000000##FFFFFF
##7A1F981.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#1C4F95
Tritanopia (blue-blind)
#783B5B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a1f98;
/* rgb */ color: rgb(122, 31, 152);
/* oklch */ color: oklch(44.4% 0.190 315.9);
Tailwind
colors: {
  custom: {
    50: '#a566b7',
    500: '#7a1f98',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f98;
$custom-light: #a566b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f98",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 285.124,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44439,
    "c": 0.18956,
    "h": 315.9
  },
  "luminance": 0.07385
}

Semantic roles & 50–950 ramp

primary
#7A1F98
secondary
#6EC053
accent
#E93F69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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