#7C2BAA#7C2BAA

#7C2BAA is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.194 H 310.0°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7C2BAA
RGBrgb(124, 43, 170)
HSLhsl(278, 60%, 42%)
HSVhsv(278, 75%, 67%)
CMYKcmyk(27.1%, 74.7%, 0%, 33.3%)
CIE-LABlab(35.82, 55.16, -52.54)
CIE-LCHlch(35.82, 76.18, 316.39°)
OKLaboklab(47.14% 0.1248 -0.1489)
OKLCHoklch(47.14% 0.194 310)
XYZxyz(16.4303, 8.9155, 38.8777)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2BAA #59AA2B
analogous
#3D2BAA #7C2BAA #AA2B99
triadic
#7C2BAA #AA7C2B #2BAA7C
tetradic
#7C2BAA #AA3D2B #59AA2B #2B99AA
square
#7C2BAA #AA3D2B #59AA2B #2B99AA
split-complementary
#7C2BAA #99AA2B #2BAA3D
monochromatic
#351248 #581F79 #7C2BAA #9C43CF #B674DC

Accessibility & contrast

On white

7.55
#7C2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7C2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2BAA
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2BAA#FFFFFF#000000##FFFFFF
##7C2BAA1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0B55A7
Tritanopia (blue-blind)
#754968
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2baa;
/* rgb */ color: rgb(124, 43, 170);
/* oklch */ color: oklch(47.1% 0.194 310.0);
Tailwind
colors: {
  custom: {
    50: '#a66dc4',
    500: '#7c2baa',
    950: '#000000',
  },
}
SCSS
$custom: #7c2baa;
$custom-light: #a66dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2baa",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 278.268,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47139,
    "c": 0.19426,
    "h": 310
  },
  "luminance": 0.08915
}

Semantic roles & 50–950 ramp

primary
#7C2BAA
secondary
#8DC36E
accent
#E3457E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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