#7C2FBB#7C2FBB

#7C2FBB is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.207 H 304.7°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#7C2FBB
RGBrgb(124, 47, 187)
HSLhsl(273, 60%, 46%)
HSVhsv(273, 75%, 73%)
CMYKcmyk(33.7%, 74.9%, 0%, 26.7%)
CIE-LABlab(37.67, 57.35, -59.62)
CIE-LCHlch(37.67, 82.73, 313.89°)
OKLaboklab(48.85% 0.1178 -0.1697)
OKLCHoklch(48.85% 0.207 304.7)
XYZxyz(18.2963, 9.9061, 47.9522)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FBB #6EBB2F
analogous
#362FBB #7C2FBB #BB2FB4
triadic
#7C2FBB #BB7C2F #2FBB7C
tetradic
#7C2FBB #BB362F #6EBB2F #2FB4BB
square
#7C2FBB #BB362F #6EBB2F #2FB4BB
split-complementary
#7C2FBB #B4BB2F #2FBB36
monochromatic
#3B1659 #5C238A #7C2FBB #9A53D4 #B784E0

Accessibility & contrast

On white

7.04
#7C2FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7C2FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FBB
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FBB#FFFFFF#000000##FFFFFF
##7C2FBB1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#705273
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c2fbb;
/* rgb */ color: rgb(124, 47, 187);
/* oklch */ color: oklch(48.8% 0.207 304.7);
Tailwind
colors: {
  custom: {
    50: '#a76fd0',
    500: '#7c2fbb',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fbb;
$custom-light: #a76fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fbb",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 273,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48849,
    "c": 0.20658,
    "h": 304.7
  },
  "luminance": 0.09906
}

Semantic roles & 50–950 ramp

primary
#7C2FBB
secondary
#9FC97C
accent
#E3458C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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