#7C1EB3#7C1EB3

#7C1EB3 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.7% C 0.215 H 308.3°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7C1EB3
RGBrgb(124, 30, 179)
HSLhsl(278, 71%, 41%)
HSVhsv(278, 83%, 70%)
CMYKcmyk(30.7%, 83.2%, 0%, 29.8%)
CIE-LABlab(34.94, 61.65, -59.34)
CIE-LCHlch(34.94, 85.57, 316.09°)
OKLaboklab(46.74% 0.1333 -0.1688)
OKLCHoklch(46.74% 0.215 308.3)
XYZxyz(16.9114, 8.4686, 43.3828)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1EB3 #55B31E
analogous
#311EB3 #7C1EB3 #B31E9F
triadic
#7C1EB3 #B37C1E #1EB37C
tetradic
#7C1EB3 #B3311E #55B31E #1E9FB3
square
#7C1EB3 #B3311E #55B31E #1E9FB3
split-complementary
#7C1EB3 #9FB31E #1EB331
monochromatic
#330C4A #58157F #7C1EB3 #9D32DD #B666E5

Accessibility & contrast

On white

7.80
#7C1EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7C1EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1EB3
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1EB3#FFFFFF#000000##FFFFFF
##7C1EB31.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#73476B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c1eb3;
/* rgb */ color: rgb(124, 30, 179);
/* oklch */ color: oklch(46.7% 0.215 308.3);
Tailwind
colors: {
  custom: {
    50: '#a868cb',
    500: '#7c1eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7c1eb3;
$custom-light: #a868cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1eb3",
  "rgb": {
    "r": 124,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 277.852,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46739,
    "c": 0.21509,
    "h": 308.3
  },
  "luminance": 0.08468
}

Semantic roles & 50–950 ramp

primary
#7C1EB3
secondary
#89CB62
accent
#EE3A7C
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C1EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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