#6A30B8#6A30B8

#6A30B8 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.199 H 297.4°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#6A30B8
RGBrgb(106, 48, 184)
HSLhsl(266, 59%, 45%)
HSVhsv(266, 74%, 72%)
CMYKcmyk(42.4%, 73.9%, 0%, 27.8%)
CIE-LABlab(35.28, 53.02, -61.86)
CIE-LCHlch(35.28, 81.47, 310.60°)
OKLaboklab(46.58% 0.0918 -0.1769)
OKLCHoklch(46.58% 0.199 297.4)
XYZxyz(15.6503, 8.6385, 46.1809)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A30B8 #7EB830
analogous
#303AB8 #6A30B8 #AE30B8
triadic
#6A30B8 #B86A30 #30B86A
tetradic
#6A30B8 #B8303A #7EB830 #30B8AE
square
#6A30B8 #B8303A #7EB830 #30B8AE
split-complementary
#6A30B8 #B8AE30 #3AB830
monochromatic
#321757 #4E2387 #6A30B8 #8953D2 #AA84DF

Accessibility & contrast

On white

7.70
#6A30B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#6A30B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A30B8
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A30B8#FFFFFF#000000##FFFFFF
##6A30B81.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#565372
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6a30b8;
/* rgb */ color: rgb(106, 48, 184);
/* oklch */ color: oklch(46.6% 0.199 297.4);
Tailwind
colors: {
  custom: {
    50: '#9c6ece',
    500: '#6a30b8',
    950: '#000000',
  },
}
SCSS
$custom: #6a30b8;
$custom-light: #9c6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#6a30b8",
  "rgb": {
    "r": 106,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 265.588,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46584,
    "c": 0.19934,
    "h": 297.4
  },
  "luminance": 0.08639
}

Semantic roles & 50–950 ramp

primary
#6A30B8
secondary
#A8C87C
accent
#E2469F
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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