#7A2EBC#7A2EBC

#7A2EBC is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.208 H 303.7°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7A2EBC
RGBrgb(122, 46, 188)
HSLhsl(272, 61%, 46%)
HSVhsv(272, 76%, 74%)
CMYKcmyk(35.1%, 75.5%, 0%, 26.3%)
CIE-LABlab(37.34, 57.63, -60.77)
CIE-LCHlch(37.34, 83.75, 313.48°)
OKLaboklab(48.58% 0.1156 -0.1732)
OKLCHoklch(48.58% 0.208 303.7)
XYZxyz(18.0780, 9.7224, 48.4914)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EBC #70BC2E
analogous
#332EBC #7A2EBC #BC2EB7
triadic
#7A2EBC #BC7A2E #2EBC7A
tetradic
#7A2EBC #BC332E #70BC2E #2EB7BC
square
#7A2EBC #BC332E #70BC2E #2EB7BC
split-complementary
#7A2EBC #B7BC2E #2EBC33
monochromatic
#3A165A #5A228B #7A2EBC #9852D5 #B584E1

Accessibility & contrast

On white

7.13
#7A2EBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7A2EBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EBC
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EBC#FFFFFF#000000##FFFFFF
##7A2EBC1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#6D5273
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a2ebc;
/* rgb */ color: rgb(122, 46, 188);
/* oklch */ color: oklch(48.6% 0.208 303.7);
Tailwind
colors: {
  custom: {
    50: '#a66fd1',
    500: '#7a2ebc',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ebc;
$custom-light: #a66fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ebc",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 188
  },
  "hsl": {
    "h": 272.113,
    "s": 60.684,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48581,
    "c": 0.20823,
    "h": 303.7
  },
  "luminance": 0.09722
}

Semantic roles & 50–950 ramp

primary
#7A2EBC
secondary
#A0CA7C
accent
#E4448E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A2EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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