#7A2FE3#7A2FE3

#7A2FE3 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 52.0% C 0.246 H 295.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7A2FE3
RGBrgb(122, 47, 227)
HSLhsl(265, 76%, 54%)
HSVhsv(265, 79%, 89%)
CMYKcmyk(46.3%, 79.3%, 0%, 11%)
CIE-LABlab(40.76, 66.48, -77.75)
CIE-LCHlch(40.76, 102.30, 310.53°)
OKLaboklab(51.98% 0.1042 -0.223)
OKLCHoklch(51.98% 0.246 295)
XYZxyz(22.9039, 11.7160, 73.7128)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FE3 #98E32F
analogous
#2F3EE3 #7A2FE3 #D42FE3
triadic
#7A2FE3 #E37A2F #2FE37A
tetradic
#7A2FE3 #E32F3E #98E32F #2FE3D4
square
#7A2FE3 #E32F3E #98E32F #2FE3D4
split-complementary
#7A2FE3 #E3D42F #3EE32F
monochromatic
#421286 #5D19BC #7A2FE3 #9C65EA #BF9BF2

Accessibility & contrast

On white

6.28
#7A2FE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7A2FE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A2FE3
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FE3#FFFFFF#000000##FFFFFF
##7A2FE31.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E8
Deuteranopia (green-blind)
#005DE0
Tritanopia (blue-blind)
#5B638A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a2fe3;
/* rgb */ color: rgb(122, 47, 227);
/* oklch */ color: oklch(52.0% 0.246 295.0);
Tailwind
colors: {
  custom: {
    50: '#aa71ed',
    500: '#7a2fe3',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fe3;
$custom-light: #aa71ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fe3",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 227
  },
  "hsl": {
    "h": 265,
    "s": 76.271,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5198,
    "c": 0.24616,
    "h": 295
  },
  "luminance": 0.11717
}

Semantic roles & 50–950 ramp

primary
#7A2FE3
secondary
#BDDD90
accent
#F335A4
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #7A2FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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