#7A34CC#7A34CC

#7A34CC is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.5% C 0.218 H 299.3°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#7A34CC
RGBrgb(122, 52, 204)
HSLhsl(268, 60%, 50%)
HSVhsv(268, 75%, 80%)
CMYKcmyk(40.2%, 74.5%, 0%, 20%)
CIE-LABlab(39.50, 58.91, -66.59)
CIE-LCHlch(39.50, 88.91, 311.50°)
OKLaboklab(50.5% 0.1067 -0.1903)
OKLCHoklch(50.5% 0.218 299.3)
XYZxyz(20.1504, 10.9529, 58.1675)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A34CC #86CC34
analogous
#343ACC #7A34CC #C634CC
triadic
#7A34CC #CC7A34 #34CC7A
tetradic
#7A34CC #CC343A #86CC34 #34CCC6
square
#7A34CC #CC343A #86CC34 #34CCC6
split-complementary
#7A34CC #CCC634 #3ACC34
monochromatic
#401B6B #5D279C #7A34CC #9A65D8 #BA96E5

Accessibility & contrast

On white

6.58
#7A34CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7A34CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A34CC
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A34CC#FFFFFF#000000##FFFFFF
##7A34CC1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#665C7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7a34cc;
/* rgb */ color: rgb(122, 52, 204);
/* oklch */ color: oklch(50.5% 0.218 299.3);
Tailwind
colors: {
  custom: {
    50: '#a772dd',
    500: '#7a34cc',
    950: '#000000',
  },
}
SCSS
$custom: #7a34cc;
$custom-light: #a772dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a34cc",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 267.632,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50499,
    "c": 0.21817,
    "h": 299.3
  },
  "luminance": 0.10953
}

Semantic roles & 50–950 ramp

primary
#7A34CC
secondary
#B1D08C
accent
#E3459A
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7A34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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