#7B2ACA#7B2ACA

#7B2ACA is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.5% C 0.226 H 301.1°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7B2ACA
RGBrgb(123, 42, 202)
HSLhsl(270, 66%, 48%)
HSVhsv(270, 79%, 79%)
CMYKcmyk(39.1%, 79.2%, 0%, 20.8%)
CIE-LABlab(38.08, 62.58, -67.75)
CIE-LCHlch(38.08, 92.23, 312.73°)
OKLaboklab(49.48% 0.1167 -0.1936)
OKLCHoklch(49.48% 0.226 301.1)
XYZxyz(19.6544, 10.1310, 56.7857)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2ACA #79CA2A
analogous
#2B2ACA #7B2ACA #CA2AC9
triadic
#7B2ACA #CA7B2A #2ACA7B
tetradic
#7B2ACA #CA2B2A #79CA2A #2AC9CA
square
#7B2ACA #CA2B2A #79CA2A #2AC9CA
split-complementary
#7B2ACA #C9CA2A #2ACA2B
monochromatic
#3D1565 #5C1F97 #7B2ACA #9955DC #B888E6

Accessibility & contrast

On white

6.94
#7B2ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7B2ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B2ACA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2ACA#FFFFFF#000000##FFFFFF
##7B2ACA1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#69567B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b2aca;
/* rgb */ color: rgb(123, 42, 202);
/* oklch */ color: oklch(49.5% 0.226 301.1);
Tailwind
colors: {
  custom: {
    50: '#a86edb',
    500: '#7b2aca',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aca;
$custom-light: #a86edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aca",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 202
  },
  "hsl": {
    "h": 270.375,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49479,
    "c": 0.22608,
    "h": 301.1
  },
  "luminance": 0.10131
}

Semantic roles & 50–950 ramp

primary
#7B2ACA
secondary
#A7D080
accent
#E93F93
background
#FBF6FD
surface
#F6ECFB
border
#D0C7D4
text
#110815
muted
#807A83

Preview Lab

Preview with #7B2ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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