#7A2FB7#7A2FB7

#7A2FB7 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.202 H 305.0°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7A2FB7
RGBrgb(122, 47, 183)
HSLhsl(273, 59%, 45%)
HSVhsv(273, 74%, 72%)
CMYKcmyk(33.3%, 74.3%, 0%, 28.2%)
CIE-LABlab(37.10, 56.06, -58.22)
CIE-LCHlch(37.10, 80.82, 313.92°)
OKLaboklab(48.29% 0.1158 -0.1657)
OKLCHoklch(48.29% 0.202 305)
XYZxyz(17.5879, 9.5896, 45.7150)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FB7 #6CB72F
analogous
#362FB7 #7A2FB7 #B72FB0
triadic
#7A2FB7 #B77A2F #2FB77A
tetradic
#7A2FB7 #B7362F #6CB72F #2FB0B7
square
#7A2FB7 #B7362F #6CB72F #2FB0B7
split-complementary
#7A2FB7 #B0B72F #2FB736
monochromatic
#391656 #5A2286 #7A2FB7 #9851D2 #B582DF

Accessibility & contrast

On white

7.20
#7A2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7A2FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FB7
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FB7#FFFFFF#000000##FFFFFF
##7A2FB71.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#6F5071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2fb7;
/* rgb */ color: rgb(122, 47, 183);
/* oklch */ color: oklch(48.3% 0.202 305.0);
Tailwind
colors: {
  custom: {
    50: '#a66fcd',
    500: '#7a2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fb7;
$custom-light: #a66fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fb7",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 273.088,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48288,
    "c": 0.20212,
    "h": 305
  },
  "luminance": 0.0959
}

Semantic roles & 50–950 ramp

primary
#7A2FB7
secondary
#9DC87A
accent
#E2458C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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