#6A2FA4#6A2FA4

#6A2FA4 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.179 H 302.8°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#6A2FA4
RGBrgb(106, 47, 164)
HSLhsl(270, 55%, 41%)
HSVhsv(270, 71%, 64%)
CMYKcmyk(35.4%, 71.3%, 0%, 35.7%)
CIE-LABlab(33.52, 48.47, -52.79)
CIE-LCHlch(33.52, 71.67, 312.56°)
OKLaboklab(44.84% 0.0968 -0.1503)
OKLCHoklch(44.84% 0.179 302.8)
XYZxyz(13.6596, 7.7775, 35.8963)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FA4 #69A42F
analogous
#2F2FA4 #6A2FA4 #A42FA4
triadic
#6A2FA4 #A46A2F #2FA46A
tetradic
#6A2FA4 #A42F2F #69A42F #2FA4A4
square
#6A2FA4 #A42F2F #69A42F #2FA4A4
split-complementary
#6A2FA4 #A4A42F #2FA42F
monochromatic
#2D1445 #4B2174 #6A2FA4 #8946CA #A776D8

Accessibility & contrast

On white

8.22
#6A2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#6A2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2FA4
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FA4#FFFFFF#000000##FFFFFF
##6A2FA41.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#004EA2
Tritanopia (blue-blind)
#5E4B66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a2fa4;
/* rgb */ color: rgb(106, 47, 164);
/* oklch */ color: oklch(44.8% 0.179 302.8);
Tailwind
colors: {
  custom: {
    50: '#9a6dc0',
    500: '#6a2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fa4;
$custom-light: #9a6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fa4",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 270.256,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44836,
    "c": 0.17877,
    "h": 302.8
  },
  "luminance": 0.07778
}

Semantic roles & 50–950 ramp

primary
#6A2FA4
secondary
#97C06F
accent
#DF4993
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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