#6A2FB6#6A2FB6

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

Color values

HEX#6A2FB6
RGBrgb(106, 47, 182)
HSLhsl(266, 59%, 45%)
HSVhsv(266, 74%, 71%)
CMYKcmyk(41.8%, 74.2%, 0%, 28.6%)
CIE-LABlab(34.95, 52.97, -61.21)
CIE-LCHlch(34.95, 80.95, 310.88°)
OKLaboklab(46.3% 0.0932 -0.175)
OKLCHoklch(46.3% 0.198 298)
XYZxyz(15.4017, 8.4743, 45.0712)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FB6 #7BB62F
analogous
#2F38B6 #6A2FB6 #AD2FB6
triadic
#6A2FB6 #B66A2F #2FB66A
tetradic
#6A2FB6 #B62F38 #7BB62F #2FB6AD
square
#6A2FB6 #B62F38 #7BB62F #2FB6AD
split-complementary
#6A2FB6 #B6AD2F #38B62F
monochromatic
#311655 #4E2285 #6A2FB6 #8950D2 #AA81DE

Accessibility & contrast

On white

7.79
#6A2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A2FB6
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FB6#FFFFFF#000000##FFFFFF
##6A2FB61.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#575270
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a2fb6;
/* rgb */ color: rgb(106, 47, 182);
/* oklch */ color: oklch(46.3% 0.198 298.0);
Tailwind
colors: {
  custom: {
    50: '#9b6dcd',
    500: '#6a2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fb6;
$custom-light: #9b6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fb6",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 266.222,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46302,
    "c": 0.19827,
    "h": 298
  },
  "luminance": 0.08475
}

Semantic roles & 50–950 ramp

primary
#6A2FB6
secondary
#A5C779
accent
#E2469E
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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