#6A36B2#6A36B2

#6A36B2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.186 H 298.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#6A36B2
RGBrgb(106, 54, 178)
HSLhsl(265, 53%, 45%)
HSVhsv(265, 70%, 70%)
CMYKcmyk(40.4%, 69.7%, 0%, 30.2%)
CIE-LABlab(35.82, 48.60, -57.41)
CIE-LCHlch(35.82, 75.22, 310.25°)
OKLaboklab(46.82% 0.0872 -0.1639)
OKLCHoklch(46.82% 0.186 298)
XYZxyz(15.2968, 8.9166, 43.0260)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A36B2 #7EB236
analogous
#3640B2 #6A36B2 #A836B2
triadic
#6A36B2 #B26A36 #36B26A
tetradic
#6A36B2 #B23640 #7EB236 #36B2A8
square
#6A36B2 #B23640 #7EB236 #36B2A8
split-complementary
#6A36B2 #B2A836 #40B236
monochromatic
#321A54 #4E2883 #6A36B2 #8959CD #AA88DB

Accessibility & contrast

On white

7.54
#6A36B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#6A36B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A36B2
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A36B2#FFFFFF#000000##FFFFFF
##6A36B21.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0053AF
Tritanopia (blue-blind)
#585470
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6a36b2;
/* rgb */ color: rgb(106, 54, 178);
/* oklch */ color: oklch(46.8% 0.186 298.0);
Tailwind
colors: {
  custom: {
    50: '#9b71ca',
    500: '#6a36b2',
    950: '#000000',
  },
}
SCSS
$custom: #6a36b2;
$custom-light: #9b71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6a36b2",
  "rgb": {
    "r": 106,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 265.161,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4682,
    "c": 0.18568,
    "h": 298
  },
  "luminance": 0.08917
}

Semantic roles & 50–950 ramp

primary
#6A36B2
secondary
#A8C57F
accent
#DD4BA0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6A36B2

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

Preview Lab → · Contrast checker → · Palette generator →

#6A36B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva