#7C2EAB#7C2EAB

#7C2EAB is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.192 H 309.4°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7C2EAB
RGBrgb(124, 46, 171)
HSLhsl(277, 58%, 43%)
HSVhsv(277, 73%, 67%)
CMYKcmyk(27.5%, 73.1%, 0%, 32.9%)
CIE-LABlab(36.33, 54.15, -52.32)
CIE-LCHlch(36.33, 75.30, 315.99°)
OKLaboklab(47.52% 0.1217 -0.1483)
OKLCHoklch(47.52% 0.192 309.4)
XYZxyz(16.6384, 9.1797, 39.4155)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EAB #5DAB2E
analogous
#3D2EAB #7C2EAB #AB2E9C
triadic
#7C2EAB #AB7C2E #2EAB7C
tetradic
#7C2EAB #AB3D2E #5DAB2E #2E9CAB
square
#7C2EAB #AB3D2E #5DAB2E #2E9CAB
split-complementary
#7C2EAB #9CAB2E #2EAB3D
monochromatic
#36144B #59217B #7C2EAB #9C48CE #B679DB

Accessibility & contrast

On white

7.41
#7C2EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7C2EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EAB
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EAB#FFFFFF#000000##FFFFFF
##7C2EAB1.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0F56A8
Tritanopia (blue-blind)
#754B6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2eab;
/* rgb */ color: rgb(124, 46, 171);
/* oklch */ color: oklch(47.5% 0.192 309.4);
Tailwind
colors: {
  custom: {
    50: '#a66ec5',
    500: '#7c2eab',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eab;
$custom-light: #a66ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eab",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 277.44,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47521,
    "c": 0.19179,
    "h": 309.4
  },
  "luminance": 0.09179
}

Semantic roles & 50–950 ramp

primary
#7C2EAB
secondary
#90C372
accent
#E14781
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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