#6A30B5#6A30B5

#6A30B5 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.196 H 298.1°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#6A30B5
RGBrgb(106, 48, 181)
HSLhsl(266, 58%, 45%)
HSVhsv(266, 73%, 71%)
CMYKcmyk(41.4%, 73.5%, 0%, 29%)
CIE-LABlab(35.03, 52.26, -60.48)
CIE-LCHlch(35.03, 79.93, 310.83°)
OKLaboklab(46.33% 0.0925 -0.1729)
OKLCHoklch(46.33% 0.196 298.1)
XYZxyz(15.3392, 8.5140, 44.5423)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A30B5 #7BB530
analogous
#3039B5 #6A30B5 #AC30B5
triadic
#6A30B5 #B56A30 #30B56A
tetradic
#6A30B5 #B53039 #7BB530 #30B5AC
square
#6A30B5 #B53039 #7BB530 #30B5AC
split-complementary
#6A30B5 #B5AC30 #39B530
monochromatic
#311654 #4E2385 #6A30B5 #8951D1 #AA82DE

Accessibility & contrast

On white

7.77
#6A30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6A30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A30B5
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A30B5#FFFFFF#000000##FFFFFF
##6A30B51.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#575270
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a30b5;
/* rgb */ color: rgb(106, 48, 181);
/* oklch */ color: oklch(46.3% 0.196 298.1);
Tailwind
colors: {
  custom: {
    50: '#9b6ecc',
    500: '#6a30b5',
    950: '#000000',
  },
}
SCSS
$custom: #6a30b5;
$custom-light: #9b6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a30b5",
  "rgb": {
    "r": 106,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 266.165,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46332,
    "c": 0.19609,
    "h": 298.1
  },
  "luminance": 0.08514
}

Semantic roles & 50–950 ramp

primary
#6A30B5
secondary
#A5C77A
accent
#E1469E
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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