#7A2FB1#7A2FB1

#7A2FB1 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.196 H 306.6°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7A2FB1
RGBrgb(122, 47, 177)
HSLhsl(275, 58%, 44%)
HSVhsv(275, 73%, 69%)
CMYKcmyk(31.1%, 73.4%, 0%, 30.6%)
CIE-LABlab(36.64, 54.69, -55.40)
CIE-LCHlch(36.64, 77.84, 314.63°)
OKLaboklab(47.82% 0.1169 -0.1574)
OKLCHoklch(47.82% 0.196 306.6)
XYZxyz(16.9766, 9.3451, 42.4959)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FB1 #66B12F
analogous
#392FB1 #7A2FB1 #B12FA7
triadic
#7A2FB1 #B17A2F #2FB17A
tetradic
#7A2FB1 #B1392F #66B12F #2FA7B1
square
#7A2FB1 #B1392F #66B12F #2FA7B1
split-complementary
#7A2FB1 #A7B12F #2FB139
monochromatic
#371550 #592281 #7A2FB1 #994DD0 #B57EDD

Accessibility & contrast

On white

7.32
#7A2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7A2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FB1
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FB1#FFFFFF#000000##FFFFFF
##7A2FB11.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#704E6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2fb1;
/* rgb */ color: rgb(122, 47, 177);
/* oklch */ color: oklch(47.8% 0.196 306.6);
Tailwind
colors: {
  custom: {
    50: '#a56fc9',
    500: '#7a2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fb1;
$custom-light: #a56fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fb1",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 274.615,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47823,
    "c": 0.19609,
    "h": 306.6
  },
  "luminance": 0.09345
}

Semantic roles & 50–950 ramp

primary
#7A2FB1
secondary
#98C576
accent
#E14788
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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