#7C2BB2#7C2BB2

#7C2BB2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.202 H 307.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7C2BB2
RGBrgb(124, 43, 178)
HSLhsl(276, 61%, 43%)
HSVhsv(276, 76%, 70%)
CMYKcmyk(30.3%, 75.8%, 0%, 30.2%)
CIE-LABlab(36.42, 56.93, -56.34)
CIE-LCHlch(36.42, 80.09, 315.30°)
OKLaboklab(47.75% 0.1233 -0.1601)
OKLCHoklch(47.75% 0.202 307.6)
XYZxyz(17.2102, 9.2274, 42.9853)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2BB2 #61B22B
analogous
#382BB2 #7C2BB2 #B22BA4
triadic
#7C2BB2 #B27C2B #2BB27C
tetradic
#7C2BB2 #B2382B #61B22B #2BA4B2
square
#7C2BB2 #B2382B #61B22B #2BA4B2
split-complementary
#7C2BB2 #A4B22B #2BB238
monochromatic
#37134F #5A1F81 #7C2BB2 #9B48D3 #B679DF

Accessibility & contrast

On white

7.38
#7C2BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7C2BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2BB2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2BB2#FFFFFF#000000##FFFFFF
##7C2BB21.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#734C6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2bb2;
/* rgb */ color: rgb(124, 43, 178);
/* oklch */ color: oklch(47.7% 0.202 307.6);
Tailwind
colors: {
  custom: {
    50: '#a76dca',
    500: '#7c2bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7c2bb2;
$custom-light: #a76dca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2bb2",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 276,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47749,
    "c": 0.20202,
    "h": 307.6
  },
  "luminance": 0.09227
}

Semantic roles & 50–950 ramp

primary
#7C2BB2
secondary
#94C772
accent
#E44484
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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