#7A2FB3#7A2FB3

#7A2FB3 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 48.0% C 0.198 H 306.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7A2FB3
RGBrgb(122, 47, 179)
HSLhsl(274, 58%, 44%)
HSVhsv(274, 74%, 70%)
CMYKcmyk(31.8%, 73.7%, 0%, 29.8%)
CIE-LABlab(36.79, 55.14, -56.34)
CIE-LCHlch(36.79, 78.84, 314.38°)
OKLaboklab(47.98% 0.1166 -0.1602)
OKLCHoklch(47.98% 0.198 306)
XYZxyz(17.1775, 9.4254, 43.5534)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FB3 #68B32F
analogous
#382FB3 #7A2FB3 #B32FAA
triadic
#7A2FB3 #B37A2F #2FB37A
tetradic
#7A2FB3 #B3382F #68B32F #2FAAB3
square
#7A2FB3 #B3382F #68B32F #2FAAB3
split-complementary
#7A2FB3 #AAB32F #2FB338
monochromatic
#381652 #592283 #7A2FB3 #984FD1 #B57FDD

Accessibility & contrast

On white

7.28
#7A2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7A2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FB3
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FB3#FFFFFF#000000##FFFFFF
##7A2FB31.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#704F6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2fb3;
/* rgb */ color: rgb(122, 47, 179);
/* oklch */ color: oklch(48.0% 0.198 306.0);
Tailwind
colors: {
  custom: {
    50: '#a66fcb',
    500: '#7a2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fb3;
$custom-light: #a66fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fb3",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 274.091,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47977,
    "c": 0.1981,
    "h": 306
  },
  "luminance": 0.09425
}

Semantic roles & 50–950 ramp

primary
#7A2FB3
secondary
#9AC678
accent
#E24689
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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