#6034B2#6034B2

#6034B2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.187 H 293.5°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#6034B2
RGBrgb(96, 52, 178)
HSLhsl(261, 55%, 45%)
HSVhsv(261, 71%, 70%)
CMYKcmyk(46.1%, 70.8%, 0%, 30.2%)
CIE-LABlab(34.31, 47.75, -59.93)
CIE-LCHlch(34.31, 76.63, 308.55°)
OKLaboklab(45.48% 0.0748 -0.1717)
OKLCHoklch(45.48% 0.187 293.5)
XYZxyz(14.0855, 8.1567, 42.9431)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6034B2 #86B234
analogous
#3447B2 #6034B2 #9F34B2
triadic
#6034B2 #B26034 #34B260
tetradic
#6034B2 #B23447 #86B234 #34B29F
square
#6034B2 #B23447 #86B234 #34B29F
split-complementary
#6034B2 #B29F34 #47B234
monochromatic
#2D1853 #462683 #6034B2 #8056CE #A385DB

Accessibility & contrast

On white

7.98
#6034B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6034B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6034B2
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6034B2#FFFFFF#000000##FFFFFF
##6034B21.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#48546F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6034b2;
/* rgb */ color: rgb(96, 52, 178);
/* oklch */ color: oklch(45.5% 0.187 293.5);
Tailwind
colors: {
  custom: {
    50: '#946fca',
    500: '#6034b2',
    950: '#000000',
  },
}
SCSS
$custom: #6034b2;
$custom-light: #946fca;
$custom-dark: #000000;
JSON
{
  "hex": "#6034b2",
  "rgb": {
    "r": 96,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 260.952,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45478,
    "c": 0.18725,
    "h": 293.5
  },
  "luminance": 0.08157
}

Semantic roles & 50–950 ramp

primary
#6034B2
secondary
#ACC57D
accent
#DE4AAA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6034B2

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

Preview Lab → · Contrast checker → · Palette generator →

#6034B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva