#7A2BC8#7A2BC8

#7A2BC8 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.3% C 0.223 H 301.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7A2BC8
RGBrgb(122, 43, 200)
HSLhsl(270, 65%, 48%)
HSVhsv(270, 79%, 78%)
CMYKcmyk(39%, 78.5%, 0%, 21.6%)
CIE-LABlab(37.91, 61.60, -66.87)
CIE-LCHlch(37.91, 90.92, 312.65°)
OKLaboklab(49.28% 0.1151 -0.1911)
OKLCHoklch(49.28% 0.223 301.1)
XYZxyz(19.3127, 10.0353, 55.5519)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BC8 #79C82B
analogous
#2B2BC8 #7A2BC8 #C82BC7
triadic
#7A2BC8 #C87A2B #2BC87A
tetradic
#7A2BC8 #C82B2B #79C82B #2BC7C8
square
#7A2BC8 #C82B2B #79C82B #2BC7C8
split-complementary
#7A2BC8 #C7C82B #2BC82B
monochromatic
#3D1563 #5B2096 #7A2BC8 #9956DB #B788E5

Accessibility & contrast

On white

6.98
#7A2BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7A2BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A2BC8
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BC8#FFFFFF#000000##FFFFFF
##7A2BC81.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#68567A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a2bc8;
/* rgb */ color: rgb(122, 43, 200);
/* oklch */ color: oklch(49.3% 0.223 301.1);
Tailwind
colors: {
  custom: {
    50: '#a86eda',
    500: '#7a2bc8',
    950: '#000000',
  },
}
SCSS
$custom: #7a2bc8;
$custom-light: #a86eda;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2bc8",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 200
  },
  "hsl": {
    "h": 270.191,
    "s": 64.609,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4928,
    "c": 0.22306,
    "h": 301.1
  },
  "luminance": 0.10035
}

Semantic roles & 50–950 ramp

primary
#7A2BC8
secondary
#A7CF80
accent
#E84093
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7A2BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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