#7C1FB3#7C1FB3

#7C1FB3 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.8% C 0.214 H 308.2°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7C1FB3
RGBrgb(124, 31, 179)
HSLhsl(278, 70%, 41%)
HSVhsv(278, 83%, 70%)
CMYKcmyk(30.7%, 82.7%, 0%, 29.8%)
CIE-LABlab(35.04, 61.35, -59.17)
CIE-LCHlch(35.04, 85.24, 316.04°)
OKLaboklab(46.81% 0.1326 -0.1683)
OKLCHoklch(46.81% 0.214 308.2)
XYZxyz(16.9371, 8.5200, 43.3914)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1FB3 #56B31F
analogous
#321FB3 #7C1FB3 #B31FA0
triadic
#7C1FB3 #B37C1F #1FB37C
tetradic
#7C1FB3 #B3321F #56B31F #1FA0B3
square
#7C1FB3 #B3321F #56B31F #1FA0B3
split-complementary
#7C1FB3 #A0B31F #1FB332
monochromatic
#340D4B #58167F #7C1FB3 #9D33DC #B668E5

Accessibility & contrast

On white

7.77
#7C1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7C1FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1FB3
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1FB3#FFFFFF#000000##FFFFFF
##7C1FB31.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.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: #7c1fb3;
/* rgb */ color: rgb(124, 31, 179);
/* oklch */ color: oklch(46.8% 0.214 308.2);
Tailwind
colors: {
  custom: {
    50: '#a868cb',
    500: '#7c1fb3',
    950: '#000000',
  },
}
SCSS
$custom: #7c1fb3;
$custom-light: #a868cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1fb3",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 277.703,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46811,
    "c": 0.21428,
    "h": 308.2
  },
  "luminance": 0.0852
}

Semantic roles & 50–950 ramp

primary
#7C1FB3
secondary
#8ACA64
accent
#ED3B7D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C1FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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