#7C2BB9#7C2BB9

#7C2BB9 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.209 H 305.7°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7C2BB9
RGBrgb(124, 43, 185)
HSLhsl(274, 62%, 45%)
HSVhsv(274, 77%, 73%)
CMYKcmyk(33%, 76.8%, 0%, 27.5%)
CIE-LABlab(36.96, 58.49, -59.61)
CIE-LCHlch(36.96, 83.51, 314.46°)
OKLaboklab(48.3% 0.1217 -0.1697)
OKLCHoklch(48.3% 0.209 305.7)
XYZxyz(17.9311, 9.5158, 46.7816)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2BB9 #68B92B
analogous
#352BB9 #7C2BB9 #B92BAF
triadic
#7C2BB9 #B97C2B #2BB97C
tetradic
#7C2BB9 #B9352B #68B92B #2BAFB9
square
#7C2BB9 #B9352B #68B92B #2BAFB9
split-complementary
#7C2BB9 #AFB92B #2BB935
monochromatic
#391456 #5B1F87 #7C2BB9 #9A4CD5 #B67EE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2BB9#FFFFFF#000000##FFFFFF
##7C2BB91.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#714F71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2bb9;
/* rgb */ color: rgb(124, 43, 185);
/* oklch */ color: oklch(48.3% 0.209 305.7);
Tailwind
colors: {
  custom: {
    50: '#a86dcf',
    500: '#7c2bb9',
    950: '#000000',
  },
}
SCSS
$custom: #7c2bb9;
$custom-light: #a86dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2bb9",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 185
  },
  "hsl": {
    "h": 274.225,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48298,
    "c": 0.20882,
    "h": 305.7
  },
  "luminance": 0.09516
}

Semantic roles & 50–950 ramp

primary
#7C2BB9
secondary
#9AC976
accent
#E54288
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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