#7C2CAB#7C2CAB

#7C2CAB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.194 H 309.6°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7C2CAB
RGBrgb(124, 44, 171)
HSLhsl(278, 59%, 42%)
HSVhsv(278, 74%, 67%)
CMYKcmyk(27.5%, 74.3%, 0%, 32.9%)
CIE-LABlab(36.04, 54.98, -52.79)
CIE-LCHlch(36.04, 76.22, 316.16°)
OKLaboklab(47.32% 0.1236 -0.1496)
OKLCHoklch(47.32% 0.194 309.6)
XYZxyz(16.5621, 9.0271, 39.3901)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CAB #5BAB2C
analogous
#3C2CAB #7C2CAB #AB2C9B
triadic
#7C2CAB #AB7C2C #2CAB7C
tetradic
#7C2CAB #AB3C2C #5BAB2C #2C9BAB
square
#7C2CAB #AB3C2C #5BAB2C #2C9BAB
split-complementary
#7C2CAB #9BAB2C #2CAB3C
monochromatic
#35134A #591F7A #7C2CAB #9C45CF #B676DC

Accessibility & contrast

On white

7.49
#7C2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7C2CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CAB
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CAB#FFFFFF#000000##FFFFFF
##7C2CAB1.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0956A8
Tritanopia (blue-blind)
#754A69
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2cab;
/* rgb */ color: rgb(124, 44, 171);
/* oklch */ color: oklch(47.3% 0.194 309.6);
Tailwind
colors: {
  custom: {
    50: '#a66dc5',
    500: '#7c2cab',
    950: '#000000',
  },
}
SCSS
$custom: #7c2cab;
$custom-light: #a66dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2cab",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 277.795,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47315,
    "c": 0.19411,
    "h": 309.6
  },
  "luminance": 0.09027
}

Semantic roles & 50–950 ramp

primary
#7C2CAB
secondary
#8EC36F
accent
#E24680
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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