#7C2DA5#7C2DA5

#7C2DA5 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.187 H 311.3°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#7C2DA5
RGBrgb(124, 45, 165)
HSLhsl(280, 57%, 41%)
HSVhsv(280, 73%, 65%)
CMYKcmyk(24.8%, 72.7%, 0%, 35.3%)
CIE-LABlab(35.75, 53.25, -49.66)
CIE-LCHlch(35.75, 72.81, 317.00°)
OKLaboklab(46.98% 0.1236 -0.1404)
OKLCHoklch(46.98% 0.187 311.3)
XYZxyz(16.0408, 8.8789, 36.4588)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DA5 #56A52D
analogous
#402DA5 #7C2DA5 #A52D92
triadic
#7C2DA5 #A57C2D #2DA57C
tetradic
#7C2DA5 #A5402D #56A52D #2D92A5
square
#7C2DA5 #A5402D #56A52D #2D92A5
split-complementary
#7C2DA5 #92A52D #2DA540
monochromatic
#341345 #582075 #7C2DA5 #9D43CC #B673D9

Accessibility & contrast

On white

7.57
#7C2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7C2DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DA5
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DA5#FFFFFF#000000##FFFFFF
##7C2DA51.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#1B55A2
Tritanopia (blue-blind)
#774866
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2da5;
/* rgb */ color: rgb(124, 45, 165);
/* oklch */ color: oklch(47.0% 0.187 311.3);
Tailwind
colors: {
  custom: {
    50: '#a66dc0',
    500: '#7c2da5',
    950: '#000000',
  },
}
SCSS
$custom: #7c2da5;
$custom-light: #a66dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2da5",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 279.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46975,
    "c": 0.18707,
    "h": 311.3
  },
  "luminance": 0.08878
}

Semantic roles & 50–950 ramp

primary
#7C2DA5
secondary
#8AC16D
accent
#E0477C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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