#7A2FCA#7A2FCA

#7A2FCA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.221 H 300.2°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7A2FCA
RGBrgb(122, 47, 202)
HSLhsl(269, 62%, 49%)
HSVhsv(269, 77%, 79%)
CMYKcmyk(39.6%, 76.7%, 0%, 20.8%)
CIE-LABlab(38.61, 60.51, -66.88)
CIE-LCHlch(38.61, 90.19, 312.14°)
OKLaboklab(49.82% 0.1114 -0.1911)
OKLCHoklch(49.82% 0.221 300.2)
XYZxyz(19.7006, 10.4347, 56.8418)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FCA #7FCA2F
analogous
#2F32CA #7A2FCA #C82FCA
triadic
#7A2FCA #CA7A2F #2FCA7A
tetradic
#7A2FCA #CA2F32 #7FCA2F #2FCAC8
square
#7A2FCA #CA2F32 #7FCA2F #2FCAC8
split-complementary
#7A2FCA #CAC82F #32CA2F
monochromatic
#3E1867 #5C2398 #7A2FCA #995DD9 #B88FE5

Accessibility & contrast

On white

6.80
#7A2FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7A2FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A2FCA
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FCA#FFFFFF#000000##FFFFFF
##7A2FCA1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#67587C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7a2fca;
/* rgb */ color: rgb(122, 47, 202);
/* oklch */ color: oklch(49.8% 0.221 300.2);
Tailwind
colors: {
  custom: {
    50: '#a870db',
    500: '#7a2fca',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fca;
$custom-light: #a870db;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fca",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 202
  },
  "hsl": {
    "h": 269.032,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.49824,
    "c": 0.22122,
    "h": 300.2
  },
  "luminance": 0.10435
}

Semantic roles & 50–950 ramp

primary
#7A2FCA
secondary
#ACCF86
accent
#E54297
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7A2FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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