#7C2FB2#7C2FB2

#7C2FB2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.2% C 0.198 H 307.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7C2FB2
RGBrgb(124, 47, 178)
HSLhsl(275, 58%, 44%)
HSVhsv(275, 74%, 70%)
CMYKcmyk(30.3%, 73.6%, 0%, 30.2%)
CIE-LABlab(36.99, 55.30, -55.41)
CIE-LCHlch(36.99, 78.28, 314.94°)
OKLaboklab(48.15% 0.1195 -0.1574)
OKLCHoklch(48.15% 0.198 307.2)
XYZxyz(17.3629, 9.5327, 43.0362)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FB2 #65B22F
analogous
#3B2FB2 #7C2FB2 #B22FA7
triadic
#7C2FB2 #B27C2F #2FB27C
tetradic
#7C2FB2 #B23B2F #65B22F #2FA7B2
square
#7C2FB2 #B23B2F #65B22F #2FA7B2
split-complementary
#7C2FB2 #A7B22F #2FB23B
monochromatic
#391551 #5A2282 #7C2FB2 #9B4ED0 #B67EDD

Accessibility & contrast

On white

7.23
#7C2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7C2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FB2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FB2#FFFFFF#000000##FFFFFF
##7C2FB21.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#734E6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2fb2;
/* rgb */ color: rgb(124, 47, 178);
/* oklch */ color: oklch(48.2% 0.198 307.2);
Tailwind
colors: {
  custom: {
    50: '#a76fca',
    500: '#7c2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fb2;
$custom-light: #a76fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fb2",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 275.267,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48152,
    "c": 0.19761,
    "h": 307.2
  },
  "luminance": 0.09532
}

Semantic roles & 50–950 ramp

primary
#7C2FB2
secondary
#97C677
accent
#E14686
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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