#6A2FA8#6A2FA8

#6A2FA8 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.183 H 301.6°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#6A2FA8
RGBrgb(106, 47, 168)
HSLhsl(269, 56%, 42%)
HSVhsv(269, 72%, 66%)
CMYKcmyk(36.9%, 72%, 0%, 34.1%)
CIE-LABlab(33.82, 49.46, -54.69)
CIE-LCHlch(33.82, 73.74, 312.12°)
OKLaboklab(45.15% 0.0961 -0.1559)
OKLCHoklch(45.15% 0.183 301.6)
XYZxyz(14.0266, 7.9243, 37.8288)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FA8 #6DA82F
analogous
#2F31A8 #6A2FA8 #A72FA8
triadic
#6A2FA8 #A86A2F #2FA86A
tetradic
#6A2FA8 #A82F31 #6DA82F #2FA8A7
square
#6A2FA8 #A82F31 #6DA82F #2FA8A7
split-complementary
#6A2FA8 #A8A72F #31A82F
monochromatic
#2E1448 #4C2278 #6A2FA8 #8848CC #A778D9

Accessibility & contrast

On white

8.12
#6A2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6A2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2FA8
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FA8#FFFFFF#000000##FFFFFF
##6A2FA81.008.122.588.12
#FFFFFF8.121.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#5D4C68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6a2fa8;
/* rgb */ color: rgb(106, 47, 168);
/* oklch */ color: oklch(45.2% 0.183 301.6);
Tailwind
colors: {
  custom: {
    50: '#9a6dc3',
    500: '#6a2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fa8;
$custom-light: #9a6dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fa8",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 269.256,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45153,
    "c": 0.18313,
    "h": 301.6
  },
  "luminance": 0.07924
}

Semantic roles & 50–950 ramp

primary
#6A2FA8
secondary
#9AC171
accent
#E04896
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6A2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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