#7C2FB8#7C2FB8

#7C2FB8 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.204 H 305.5°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#7C2FB8
RGBrgb(124, 47, 184)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 74%, 72%)
CMYKcmyk(32.6%, 74.5%, 0%, 27.8%)
CIE-LABlab(37.44, 56.66, -58.23)
CIE-LCHlch(37.44, 81.25, 314.22°)
OKLaboklab(48.61% 0.1184 -0.1656)
OKLCHoklch(48.61% 0.204 305.5)
XYZxyz(17.9785, 9.7789, 46.2785)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FB8 #6BB82F
analogous
#382FB8 #7C2FB8 #B82FAF
triadic
#7C2FB8 #B87C2F #2FB87C
tetradic
#7C2FB8 #B8382F #6BB82F #2FAFB8
square
#7C2FB8 #B8382F #6BB82F #2FAFB8
split-complementary
#7C2FB8 #AFB82F #2FB838
monochromatic
#3A1657 #5B2387 #7C2FB8 #9A52D3 #B682DF

Accessibility & contrast

On white

7.10
#7C2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7C2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FB8
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FB8#FFFFFF#000000##FFFFFF
##7C2FB81.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#715171
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2fb8;
/* rgb */ color: rgb(124, 47, 184);
/* oklch */ color: oklch(48.6% 0.204 305.5);
Tailwind
colors: {
  custom: {
    50: '#a76fce',
    500: '#7c2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fb8;
$custom-light: #a76fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fb8",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 273.723,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48614,
    "c": 0.20359,
    "h": 305.5
  },
  "luminance": 0.09779
}

Semantic roles & 50–950 ramp

primary
#7C2FB8
secondary
#9DC87B
accent
#E2458A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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