#7C2BAB#7C2BAB

#7C2BAB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.195 H 309.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7C2BAB
RGBrgb(124, 43, 171)
HSLhsl(278, 60%, 42%)
HSVhsv(278, 75%, 67%)
CMYKcmyk(27.5%, 74.9%, 0%, 32.9%)
CIE-LABlab(35.89, 55.38, -53.02)
CIE-LCHlch(35.89, 76.67, 316.25°)
OKLaboklab(47.21% 0.1246 -0.1503)
OKLCHoklch(47.21% 0.195 309.7)
XYZxyz(16.5253, 8.9534, 39.3778)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2BAB #5AAB2B
analogous
#3C2BAB #7C2BAB #AB2B9A
triadic
#7C2BAB #AB7C2B #2BAB7C
tetradic
#7C2BAB #AB3C2B #5AAB2B #2B9AAB
square
#7C2BAB #AB3C2B #5AAB2B #2B9AAB
split-complementary
#7C2BAB #9AAB2B #2BAB3C
monochromatic
#351249 #591F7A #7C2BAB #9C43D0 #B674DC

Accessibility & contrast

On white

7.53
#7C2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7C2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2BAB
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2BAB#FFFFFF#000000##FFFFFF
##7C2BAB1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0756A8
Tritanopia (blue-blind)
#754969
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2bab;
/* rgb */ color: rgb(124, 43, 171);
/* oklch */ color: oklch(47.2% 0.195 309.7);
Tailwind
colors: {
  custom: {
    50: '#a76dc5',
    500: '#7c2bab',
    950: '#000000',
  },
}
SCSS
$custom: #7c2bab;
$custom-light: #a76dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2bab",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 277.969,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47214,
    "c": 0.19523,
    "h": 309.7
  },
  "luminance": 0.08953
}

Semantic roles & 50–950 ramp

primary
#7C2BAB
secondary
#8EC46E
accent
#E3457F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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