#7C2AB9#7C2AB9

#7C2AB9 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.210 H 305.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7C2AB9
RGBrgb(124, 42, 185)
HSLhsl(274, 63%, 45%)
HSVhsv(274, 77%, 73%)
CMYKcmyk(33%, 77.3%, 0%, 27.5%)
CIE-LABlab(36.83, 58.88, -59.83)
CIE-LCHlch(36.83, 83.94, 314.54°)
OKLaboklab(48.2% 0.1226 -0.1703)
OKLCHoklch(48.2% 0.21 305.7)
XYZxyz(17.8951, 9.4439, 46.7697)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AB9 #67B92A
analogous
#352AB9 #7C2AB9 #B92AAF
triadic
#7C2AB9 #B97C2A #2AB97C
tetradic
#7C2AB9 #B9352A #67B92A #2AAFB9
square
#7C2AB9 #B9352A #67B92A #2AAFB9
split-complementary
#7C2AB9 #AFB92A #2AB935
monochromatic
#391355 #5B1F87 #7C2AB9 #9A4AD6 #B67CE1

Accessibility & contrast

On white

7.27
#7C2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7C2AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2AB9
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AB9#FFFFFF#000000##FFFFFF
##7C2AB91.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#714F71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2ab9;
/* rgb */ color: rgb(124, 42, 185);
/* oklch */ color: oklch(48.2% 0.210 305.7);
Tailwind
colors: {
  custom: {
    50: '#a86dcf',
    500: '#7c2ab9',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ab9;
$custom-light: #a86dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ab9",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 274.406,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48204,
    "c": 0.20983,
    "h": 305.7
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

primary
#7C2AB9
secondary
#99CA75
accent
#E64288
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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