#7B34B2#7B34B2

#7B34B2 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.6% C 0.191 H 306.2°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#7B34B2
RGBrgb(123, 52, 178)
HSLhsl(274, 55%, 45%)
HSVhsv(274, 71%, 70%)
CMYKcmyk(30.9%, 70.8%, 0%, 30.2%)
CIE-LABlab(37.63, 52.91, -54.38)
CIE-LCHlch(37.63, 75.88, 314.21°)
OKLaboklab(48.58% 0.1131 -0.1544)
OKLCHoklch(48.58% 0.191 306.2)
XYZxyz(17.4305, 9.8815, 43.0999)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B34B2 #6BB234
analogous
#3C34B2 #7B34B2 #B234AA
triadic
#7B34B2 #B27B34 #34B27B
tetradic
#7B34B2 #B23C34 #6BB234 #34AAB2
square
#7B34B2 #B23C34 #6BB234 #34AAB2
split-complementary
#7B34B2 #AAB234 #34B23C
monochromatic
#3A1853 #5A2683 #7B34B2 #9956CE #B685DB

Accessibility & contrast

On white

7.06
#7B34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7B34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B34B2
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B34B2#FFFFFF#000000##FFFFFF
##7B34B21.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0359AF
Tritanopia (blue-blind)
#71516F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7b34b2;
/* rgb */ color: rgb(123, 52, 178);
/* oklch */ color: oklch(48.6% 0.191 306.2);
Tailwind
colors: {
  custom: {
    50: '#a671ca',
    500: '#7b34b2',
    950: '#000000',
  },
}
SCSS
$custom: #7b34b2;
$custom-light: #a671ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b34b2",
  "rgb": {
    "r": 123,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 273.81,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48577,
    "c": 0.19141,
    "h": 306.2
  },
  "luminance": 0.09881
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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