#7C34B2#7C34B2

#7C34B2 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.7% C 0.192 H 306.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7C34B2
RGBrgb(124, 52, 178)
HSLhsl(274, 55%, 45%)
HSVhsv(274, 71%, 70%)
CMYKcmyk(30.3%, 70.8%, 0%, 30.2%)
CIE-LABlab(37.76, 53.11, -54.16)
CIE-LCHlch(37.76, 75.86, 314.44°)
OKLaboklab(48.7% 0.1145 -0.1537)
OKLCHoklch(48.7% 0.192 306.7)
XYZxyz(17.5743, 9.9556, 43.1066)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C34B2 #6AB234
analogous
#3D34B2 #7C34B2 #B234A9
triadic
#7C34B2 #B27C34 #34B27C
tetradic
#7C34B2 #B23D34 #6AB234 #34A9B2
square
#7C34B2 #B23D34 #6AB234 #34A9B2
split-complementary
#7C34B2 #A9B234 #34B23D
monochromatic
#3A1853 #5B2683 #7C34B2 #9A56CE #B685DB

Accessibility & contrast

On white

7.02
#7C34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7C34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C34B2
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C34B2#FFFFFF#000000##FFFFFF
##7C34B21.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#0759AF
Tritanopia (blue-blind)
#73516F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c34b2;
/* rgb */ color: rgb(124, 52, 178);
/* oklch */ color: oklch(48.7% 0.192 306.7);
Tailwind
colors: {
  custom: {
    50: '#a772ca',
    500: '#7c34b2',
    950: '#000000',
  },
}
SCSS
$custom: #7c34b2;
$custom-light: #a772ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c34b2",
  "rgb": {
    "r": 124,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 274.286,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48701,
    "c": 0.19167,
    "h": 306.7
  },
  "luminance": 0.09955
}

Semantic roles & 50–950 ramp

primary
#7C34B2
secondary
#9CC57D
accent
#DE4A89
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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