#7A2FB6#7A2FB6

#7A2FB6 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.201 H 305.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7A2FB6
RGBrgb(122, 47, 182)
HSLhsl(273, 59%, 45%)
HSVhsv(273, 74%, 71%)
CMYKcmyk(33%, 74.2%, 0%, 28.6%)
CIE-LABlab(37.02, 55.83, -57.75)
CIE-LCHlch(37.02, 80.33, 314.03°)
OKLaboklab(48.21% 0.116 -0.1643)
OKLCHoklch(48.21% 0.201 305.2)
XYZxyz(17.4842, 9.5481, 45.1688)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FB6 #6BB62F
analogous
#362FB6 #7A2FB6 #B62FAF
triadic
#7A2FB6 #B67A2F #2FB67A
tetradic
#7A2FB6 #B6362F #6BB62F #2FAFB6
square
#7A2FB6 #B6362F #6BB62F #2FAFB6
split-complementary
#7A2FB6 #AFB62F #2FB636
monochromatic
#391655 #592285 #7A2FB6 #9850D2 #B581DE

Accessibility & contrast

On white

7.22
#7A2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7A2FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FB6
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FB6#FFFFFF#000000##FFFFFF
##7A2FB61.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#6F5070
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2fb6;
/* rgb */ color: rgb(122, 47, 182);
/* oklch */ color: oklch(48.2% 0.201 305.2);
Tailwind
colors: {
  custom: {
    50: '#a66fcd',
    500: '#7a2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fb6;
$custom-light: #a66fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fb6",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 273.333,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48209,
    "c": 0.20112,
    "h": 305.2
  },
  "luminance": 0.09548
}

Semantic roles & 50–950 ramp

primary
#7A2FB6
secondary
#9CC779
accent
#E2468B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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