#7A2FCF#7A2FCF

#7A2FCF is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.2% C 0.226 H 299.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7A2FCF
RGBrgb(122, 47, 207)
HSLhsl(268, 63%, 50%)
HSVhsv(268, 77%, 81%)
CMYKcmyk(41.1%, 77.3%, 0%, 18.8%)
CIE-LABlab(39.03, 61.70, -69.10)
CIE-LCHlch(39.03, 92.64, 311.76°)
OKLaboklab(50.24% 0.1101 -0.1976)
OKLCHoklch(50.24% 0.226 299.1)
XYZxyz(20.3022, 10.6753, 60.0103)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FCF #84CF2F
analogous
#2F34CF #7A2FCF #CA2FCF
triadic
#7A2FCF #CF7A2F #2FCF7A
tetradic
#7A2FCF #CF2F34 #84CF2F #2FCFCA
square
#7A2FCF #CF2F34 #84CF2F #2FCFCA
split-complementary
#7A2FCF #CFCA2F #34CF2F
monochromatic
#3F186B #5D249D #7A2FCF #9A60DB #BA92E6

Accessibility & contrast

On white

6.70
#7A2FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7A2FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A2FCF
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FCF#FFFFFF#000000##FFFFFF
##7A2FCF1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#655A7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7a2fcf;
/* rgb */ color: rgb(122, 47, 207);
/* oklch */ color: oklch(50.2% 0.226 299.1);
Tailwind
colors: {
  custom: {
    50: '#a870df',
    500: '#7a2fcf',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fcf;
$custom-light: #a870df;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fcf",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 207
  },
  "hsl": {
    "h": 268.125,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50244,
    "c": 0.22623,
    "h": 299.1
  },
  "luminance": 0.10676
}

Semantic roles & 50–950 ramp

primary
#7A2FCF
secondary
#AFD189
accent
#E64299
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7A2FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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