#7A1FD5#7A1FD5

#7A1FD5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.5% C 0.245 H 299.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#7A1FD5
RGBrgb(122, 31, 213)
HSLhsl(270, 75%, 48%)
HSVhsv(270, 85%, 84%)
CMYKcmyk(42.7%, 85.4%, 0%, 16.5%)
CIE-LABlab(37.70, 68.50, -74.75)
CIE-LCHlch(37.70, 101.39, 312.50°)
OKLaboklab(49.49% 0.1187 -0.2141)
OKLCHoklch(49.49% 0.245 299)
XYZxyz(20.5232, 9.9213, 63.7716)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1FD5 #7AD51F
analogous
#1F1FD5 #7A1FD5 #D51FD5
triadic
#7A1FD5 #D57A1F #1FD57A
tetradic
#7A1FD5 #D51F1F #7AD51F #1FD5D5
square
#7A1FD5 #D51F1F #7AD51F #1FD5D5
split-complementary
#7A1FD5 #D5D51F #1FD51F
monochromatic
#3D0F6A #5B17A0 #7A1FD5 #994CE5 #B782ED

Accessibility & contrast

On white

7.04
#7A1FD5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7A1FD5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1FD5
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1FD5#FFFFFF#000000##FFFFFF
##7A1FD51.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059DA
Deuteranopia (green-blind)
#0057D2
Tritanopia (blue-blind)
#63577F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a1fd5;
/* rgb */ color: rgb(122, 31, 213);
/* oklch */ color: oklch(49.5% 0.245 299.0);
Tailwind
colors: {
  custom: {
    50: '#a96ae3',
    500: '#7a1fd5',
    950: '#000000',
  },
}
SCSS
$custom: #7a1fd5;
$custom-light: #a96ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1fd5",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 213
  },
  "hsl": {
    "h": 270,
    "s": 74.59,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49486,
    "c": 0.24478,
    "h": 299
  },
  "luminance": 0.09922
}

Semantic roles & 50–950 ramp

primary
#7A1FD5
secondary
#A8D57A
accent
#F13794
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110716
muted
#807A84

Preview Lab

Preview with #7A1FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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