#7A2FC7#7A2FC7

#7A2FC7 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.218 H 300.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7A2FC7
RGBrgb(122, 47, 199)
HSLhsl(270, 62%, 48%)
HSVhsv(270, 76%, 78%)
CMYKcmyk(38.7%, 76.4%, 0%, 22%)
CIE-LABlab(38.37, 59.80, -65.54)
CIE-LCHlch(38.37, 88.72, 312.38°)
OKLaboklab(49.58% 0.1122 -0.1872)
OKLCHoklch(49.58% 0.218 300.9)
XYZxyz(19.3488, 10.2940, 54.9893)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FC7 #7CC72F
analogous
#2F30C7 #7A2FC7 #C62FC7
triadic
#7A2FC7 #C77A2F #2FC77A
tetradic
#7A2FC7 #C72F30 #7CC72F #2FC7C6
square
#7A2FC7 #C72F30 #7CC72F #2FC7C6
split-complementary
#7A2FC7 #C7C62F #30C72F
monochromatic
#3D1864 #5C2395 #7A2FC7 #995BD8 #B88CE4

Accessibility & contrast

On white

6.87
#7A2FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7A2FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A2FC7
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FC7#FFFFFF#000000##FFFFFF
##7A2FC71.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#69577A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7a2fc7;
/* rgb */ color: rgb(122, 47, 199);
/* oklch */ color: oklch(49.6% 0.218 300.9);
Tailwind
colors: {
  custom: {
    50: '#a770d9',
    500: '#7a2fc7',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fc7;
$custom-light: #a770d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fc7",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 199
  },
  "hsl": {
    "h": 269.605,
    "s": 61.789,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49575,
    "c": 0.21821,
    "h": 300.9
  },
  "luminance": 0.10294
}

Semantic roles & 50–950 ramp

primary
#7A2FC7
secondary
#A9CE84
accent
#E54395
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7A2FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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