#7C2DBE#7C2DBE

#7C2DBE is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.212 H 304.2°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#7C2DBE
RGBrgb(124, 45, 190)
HSLhsl(273, 62%, 46%)
HSVhsv(273, 76%, 75%)
CMYKcmyk(34.7%, 76.3%, 0%, 25.5%)
CIE-LABlab(37.63, 58.84, -61.47)
CIE-LCHlch(37.63, 85.09, 313.75°)
OKLaboklab(48.89% 0.1189 -0.1751)
OKLCHoklch(48.89% 0.212 304.2)
XYZxyz(18.5427, 9.8796, 49.6353)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DBE #6FBE2D
analogous
#342DBE #7C2DBE #BE2DB7
triadic
#7C2DBE #BE7C2D #2DBE7C
tetradic
#7C2DBE #BE342D #6FBE2D #2DB7BE
square
#7C2DBE #BE342D #6FBE2D #2DB7BE
split-complementary
#7C2DBE #B7BE2D #2DBE34
monochromatic
#3B165B #5C218D #7C2DBE #9A52D6 #B784E2

Accessibility & contrast

On white

7.06
#7C2DBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7C2DBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DBE
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DBE#FFFFFF#000000##FFFFFF
##7C2DBE1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#0058BB
Tritanopia (blue-blind)
#6F5274
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c2dbe;
/* rgb */ color: rgb(124, 45, 190);
/* oklch */ color: oklch(48.9% 0.212 304.2);
Tailwind
colors: {
  custom: {
    50: '#a86fd3',
    500: '#7c2dbe',
    950: '#000000',
  },
}
SCSS
$custom: #7c2dbe;
$custom-light: #a86fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2dbe",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 190
  },
  "hsl": {
    "h": 272.69,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48888,
    "c": 0.21166,
    "h": 304.2
  },
  "luminance": 0.0988
}

Semantic roles & 50–950 ramp

primary
#7C2DBE
secondary
#A0CB7C
accent
#E5438D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C2DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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