#7A2EB3#7A2EB3

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

Color values

HEX#7A2EB3
RGBrgb(122, 46, 179)
HSLhsl(274, 59%, 44%)
HSVhsv(274, 74%, 70%)
CMYKcmyk(31.8%, 74.3%, 0%, 29.8%)
CIE-LABlab(36.64, 55.56, -56.58)
CIE-LCHlch(36.64, 79.30, 314.48°)
OKLaboklab(47.87% 0.1175 -0.1609)
OKLCHoklch(47.87% 0.199 306.1)
XYZxyz(17.1379, 9.3464, 43.5403)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EB3 #67B32E
analogous
#382EB3 #7A2EB3 #B32EAA
triadic
#7A2EB3 #B37A2E #2EB37A
tetradic
#7A2EB3 #B3382E #67B32E #2EAAB3
square
#7A2EB3 #B3382E #67B32E #2EAAB3
split-complementary
#7A2EB3 #AAB32E #2EB338
monochromatic
#381552 #592182 #7A2EB3 #994DD1 #B57EDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2EB3#FFFFFF#000000##FFFFFF
##7A2EB31.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)
#0054B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#704E6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2eb3;
/* rgb */ color: rgb(122, 46, 179);
/* oklch */ color: oklch(47.9% 0.199 306.1);
Tailwind
colors: {
  custom: {
    50: '#a66ecb',
    500: '#7a2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eb3;
$custom-light: #a66ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eb3",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 274.286,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47872,
    "c": 0.19922,
    "h": 306.1
  },
  "luminance": 0.09346
}

Semantic roles & 50–950 ramp

primary
#7A2EB3
secondary
#99C676
accent
#E24689
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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