#7C2DAF#7C2DAF

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

Color values

HEX#7C2DAF
RGBrgb(124, 45, 175)
HSLhsl(276, 59%, 43%)
HSVhsv(276, 74%, 69%)
CMYKcmyk(29.1%, 74.3%, 0%, 31.4%)
CIE-LABlab(36.48, 55.45, -54.47)
CIE-LCHlch(36.48, 77.73, 315.52°)
OKLaboklab(47.72% 0.122 -0.1546)
OKLCHoklch(47.72% 0.197 308.3)
XYZxyz(16.9868, 9.2573, 41.4411)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DAF #60AF2D
analogous
#3B2DAF #7C2DAF #AF2DA1
triadic
#7C2DAF #AF7C2D #2DAF7C
tetradic
#7C2DAF #AF3B2D #60AF2D #2DA1AF
square
#7C2DAF #AF3B2D #60AF2D #2DA1AF
split-complementary
#7C2DAF #A1AF2D #2DAF3B
monochromatic
#37144E #5A207E #7C2DAF #9B49D0 #B67ADD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2DAF#FFFFFF#000000##FFFFFF
##7C2DAF1.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)
#0053B3
Deuteranopia (green-blind)
#0057AC
Tritanopia (blue-blind)
#744C6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2daf;
/* rgb */ color: rgb(124, 45, 175);
/* oklch */ color: oklch(47.7% 0.197 308.3);
Tailwind
colors: {
  custom: {
    50: '#a76ec8',
    500: '#7c2daf',
    950: '#000000',
  },
}
SCSS
$custom: #7c2daf;
$custom-light: #a76ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2daf",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 276.462,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47718,
    "c": 0.1969,
    "h": 308.3
  },
  "luminance": 0.09257
}

Semantic roles & 50–950 ramp

primary
#7C2DAF
secondary
#93C573
accent
#E24683
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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