#7C34BF#7C34BF

#7C34BF is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.7% C 0.205 H 303.2°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7C34BF
RGBrgb(124, 52, 191)
HSLhsl(271, 57%, 48%)
HSVhsv(271, 73%, 75%)
CMYKcmyk(35.1%, 72.8%, 0%, 25.1%)
CIE-LABlab(38.73, 56.15, -60.26)
CIE-LCHlch(38.73, 82.36, 312.98°)
OKLaboklab(49.69% 0.1123 -0.1716)
OKLCHoklch(49.69% 0.205 303.2)
XYZxyz(18.9419, 10.5027, 50.3094)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C34BF #77BF34
analogous
#3634BF #7C34BF #BF34BD
triadic
#7C34BF #BF7C34 #34BF7C
tetradic
#7C34BF #BF3634 #77BF34 #34BDBF
square
#7C34BF #BF3634 #77BF34 #34BDBF
split-complementary
#7C34BF #BDBF34 #34BF36
monochromatic
#3E1A5F #5D278F #7C34BF #9A5DD3 #B88DE0

Accessibility & contrast

On white

6.77
#7C34BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7C34BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C34BF
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C34BF#FFFFFF#000000##FFFFFF
##7C34BF1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#6E5677
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c34bf;
/* rgb */ color: rgb(124, 52, 191);
/* oklch */ color: oklch(49.7% 0.205 303.2);
Tailwind
colors: {
  custom: {
    50: '#a872d3',
    500: '#7c34bf',
    950: '#000000',
  },
}
SCSS
$custom: #7c34bf;
$custom-light: #a872d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c34bf",
  "rgb": {
    "r": 124,
    "g": 52,
    "b": 191
  },
  "hsl": {
    "h": 271.079,
    "s": 57.202,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49691,
    "c": 0.20509,
    "h": 303.2
  },
  "luminance": 0.10503
}

Semantic roles & 50–950 ramp

primary
#7C34BF
secondary
#A6CA84
accent
#E04791
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C34BF

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

Preview Lab → · Contrast checker → · Palette generator →

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