#7C2FAB#7C2FAB

#7C2FAB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.6% C 0.191 H 309.3°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7C2FAB
RGBrgb(124, 47, 171)
HSLhsl(277, 57%, 43%)
HSVhsv(277, 73%, 67%)
CMYKcmyk(27.5%, 72.5%, 0%, 32.9%)
CIE-LABlab(36.48, 53.73, -52.08)
CIE-LCHlch(36.48, 74.82, 315.89°)
OKLaboklab(47.63% 0.1207 -0.1476)
OKLCHoklch(47.63% 0.191 309.3)
XYZxyz(16.6779, 9.2587, 39.4287)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FAB #5EAB2F
analogous
#3E2FAB #7C2FAB #AB2F9C
triadic
#7C2FAB #AB7C2F #2FAB7C
tetradic
#7C2FAB #AB3E2F #5EAB2F #2F9CAB
square
#7C2FAB #AB3E2F #5EAB2F #2F9CAB
split-complementary
#7C2FAB #9CAB2F #2FAB3E
monochromatic
#36154B #59227B #7C2FAB #9B4ACD #B67ADA

Accessibility & contrast

On white

7.36
#7C2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7C2FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FAB
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FAB#FFFFFF#000000##FFFFFF
##7C2FAB1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#1157A8
Tritanopia (blue-blind)
#754B6A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2fab;
/* rgb */ color: rgb(124, 47, 171);
/* oklch */ color: oklch(47.6% 0.191 309.3);
Tailwind
colors: {
  custom: {
    50: '#a66fc5',
    500: '#7c2fab',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fab;
$custom-light: #a66fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fab",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 277.258,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47628,
    "c": 0.19062,
    "h": 309.3
  },
  "luminance": 0.09258
}

Semantic roles & 50–950 ramp

primary
#7C2FAB
secondary
#91C373
accent
#E04881
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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