#7A2EBD#7A2EBD

#7A2EBD is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.209 H 303.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7A2EBD
RGBrgb(122, 46, 189)
HSLhsl(272, 61%, 46%)
HSVhsv(272, 76%, 74%)
CMYKcmyk(35.4%, 75.7%, 0%, 25.9%)
CIE-LABlab(37.42, 57.87, -61.23)
CIE-LCHlch(37.42, 84.25, 313.38°)
OKLaboklab(48.66% 0.1154 -0.1745)
OKLCHoklch(48.66% 0.209 303.5)
XYZxyz(18.1862, 9.7657, 49.0611)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EBD #71BD2E
analogous
#322EBD #7A2EBD #BD2EB8
triadic
#7A2EBD #BD7A2E #2EBD7A
tetradic
#7A2EBD #BD322E #71BD2E #2EB8BD
square
#7A2EBD #BD322E #71BD2E #2EB8BD
split-complementary
#7A2EBD #B8BD2E #2EBD32
monochromatic
#3A165B #5A228C #7A2EBD #9853D5 #B684E1

Accessibility & contrast

On white

7.11
#7A2EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7A2EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EBD
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EBD#FFFFFF#000000##FFFFFF
##7A2EBD1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#6C5274
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a2ebd;
/* rgb */ color: rgb(122, 46, 189);
/* oklch */ color: oklch(48.7% 0.209 303.5);
Tailwind
colors: {
  custom: {
    50: '#a66fd2',
    500: '#7a2ebd',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ebd;
$custom-light: #a66fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ebd",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 271.888,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48661,
    "c": 0.20922,
    "h": 303.5
  },
  "luminance": 0.09766
}

Semantic roles & 50–950 ramp

primary
#7A2EBD
secondary
#A1CA7C
accent
#E4448F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A2EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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