#7B34CC#7B34CC

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

Color values

HEX#7B34CC
RGBrgb(123, 52, 204)
HSLhsl(268, 60%, 50%)
HSVhsv(268, 75%, 80%)
CMYKcmyk(39.7%, 74.5%, 0%, 20%)
CIE-LABlab(39.62, 59.08, -66.38)
CIE-LCHlch(39.62, 88.86, 311.67°)
OKLaboklab(50.61% 0.1081 -0.1897)
OKLCHoklch(50.61% 0.218 299.7)
XYZxyz(20.2927, 11.0263, 58.1742)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34CC #85CC34
analogous
#3439CC #7B34CC #C734CC
triadic
#7B34CC #CC7B34 #34CC7B
tetradic
#7B34CC #CC3439 #85CC34 #34CCC7
square
#7B34CC #CC3439 #85CC34 #34CCC7
split-complementary
#7B34CC #CCC734 #39CC34
monochromatic
#401B6B #5E279C #7B34CC #9B65D8 #BB96E5

Accessibility & contrast

On white

6.55
#7B34CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7B34CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B34CC
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B34CC#FFFFFF#000000##FFFFFF
##7B34CC1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b34cc;
/* rgb */ color: rgb(123, 52, 204);
/* oklch */ color: oklch(50.6% 0.218 299.7);
Tailwind
colors: {
  custom: {
    50: '#a873dd',
    500: '#7b34cc',
    950: '#000000',
  },
}
SCSS
$custom: #7b34cc;
$custom-light: #a873dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34cc",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 268.026,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50613,
    "c": 0.21831,
    "h": 299.7
  },
  "luminance": 0.11027
}

Semantic roles & 50–950 ramp

primary
#7B34CC
secondary
#B0D08C
accent
#E34599
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7B34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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