#7C2FB1#7C2FB1

#7C2FB1 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.197 H 307.5°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7C2FB1
RGBrgb(124, 47, 177)
HSLhsl(276, 58%, 44%)
HSVhsv(276, 73%, 69%)
CMYKcmyk(29.9%, 73.4%, 0%, 30.6%)
CIE-LABlab(36.92, 55.07, -54.94)
CIE-LCHlch(36.92, 77.79, 315.07°)
OKLaboklab(48.08% 0.1197 -0.156)
OKLCHoklch(48.08% 0.197 307.5)
XYZxyz(17.2628, 9.4927, 42.5093)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FB1 #64B12F
analogous
#3B2FB1 #7C2FB1 #B12FA5
triadic
#7C2FB1 #B17C2F #2FB17C
tetradic
#7C2FB1 #B13B2F #64B12F #2FA5B1
square
#7C2FB1 #B13B2F #64B12F #2FA5B1
split-complementary
#7C2FB1 #A5B12F #2FB13B
monochromatic
#381550 #5A2281 #7C2FB1 #9B4DD0 #B67EDD

Accessibility & contrast

On white

7.25
#7C2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7C2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FB1
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FB1#FFFFFF#000000##FFFFFF
##7C2FB11.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#734E6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2fb1;
/* rgb */ color: rgb(124, 47, 177);
/* oklch */ color: oklch(48.1% 0.197 307.5);
Tailwind
colors: {
  custom: {
    50: '#a76fc9',
    500: '#7c2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fb1;
$custom-light: #a76fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fb1",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 275.538,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48077,
    "c": 0.1966,
    "h": 307.5
  },
  "luminance": 0.09492
}

Semantic roles & 50–950 ramp

primary
#7C2FB1
secondary
#97C576
accent
#E14786
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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