#7C2DB9#7C2DB9

#7C2DB9 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.207 H 305.5°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7C2DB9
RGBrgb(124, 45, 185)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 76%, 73%)
CMYKcmyk(33%, 75.7%, 0%, 27.5%)
CIE-LABlab(37.23, 57.70, -59.16)
CIE-LCHlch(37.23, 82.64, 314.29°)
OKLaboklab(48.49% 0.12 -0.1684)
OKLCHoklch(48.49% 0.207 305.5)
XYZxyz(18.0056, 9.6648, 46.8065)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DB9 #6AB92D
analogous
#362DB9 #7C2DB9 #B92DB0
triadic
#7C2DB9 #B97C2D #2DB97C
tetradic
#7C2DB9 #B9362D #6AB92D #2DB0B9
square
#7C2DB9 #B9362D #6AB92D #2DB0B9
split-complementary
#7C2DB9 #B0B92D #2DB936
monochromatic
#3A1557 #5B2188 #7C2DB9 #9A4FD4 #B680E0

Accessibility & contrast

On white

7.16
#7C2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7C2DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DB9
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DB9#FFFFFF#000000##FFFFFF
##7C2DB91.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#715071
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2db9;
/* rgb */ color: rgb(124, 45, 185);
/* oklch */ color: oklch(48.5% 0.207 305.5);
Tailwind
colors: {
  custom: {
    50: '#a76ecf',
    500: '#7c2db9',
    950: '#000000',
  },
}
SCSS
$custom: #7c2db9;
$custom-light: #a76ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2db9",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 273.857,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48491,
    "c": 0.20675,
    "h": 305.5
  },
  "luminance": 0.09665
}

Semantic roles & 50–950 ramp

primary
#7C2DB9
secondary
#9CC979
accent
#E4448A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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