#6A2FA7#6A2FA7

#6A2FA7 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.182 H 301.9°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#6A2FA7
RGBrgb(106, 47, 167)
HSLhsl(270, 56%, 42%)
HSVhsv(270, 72%, 65%)
CMYKcmyk(36.5%, 71.9%, 0%, 34.5%)
CIE-LABlab(33.75, 49.22, -54.22)
CIE-LCHlch(33.75, 73.23, 312.23°)
OKLaboklab(45.07% 0.0963 -0.1545)
OKLCHoklch(45.07% 0.182 301.9)
XYZxyz(13.9338, 7.8872, 37.3400)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FA7 #6CA72F
analogous
#2F30A7 #6A2FA7 #A62FA7
triadic
#6A2FA7 #A76A2F #2FA76A
tetradic
#6A2FA7 #A72F30 #6CA72F #2FA7A6
square
#6A2FA7 #A72F30 #6CA72F #2FA7A6
split-complementary
#6A2FA7 #A7A62F #30A72F
monochromatic
#2D1447 #4C2277 #6A2FA7 #8948CB #A778D9

Accessibility & contrast

On white

8.15
#6A2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A2FA7
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FA7#FFFFFF#000000##FFFFFF
##6A2FA71.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#5D4C68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a2fa7;
/* rgb */ color: rgb(106, 47, 167);
/* oklch */ color: oklch(45.1% 0.182 301.9);
Tailwind
colors: {
  custom: {
    50: '#9a6dc2',
    500: '#6a2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fa7;
$custom-light: #9a6dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fa7",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 269.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45074,
    "c": 0.18204,
    "h": 301.9
  },
  "luminance": 0.07887
}

Semantic roles & 50–950 ramp

primary
#6A2FA7
secondary
#9AC171
accent
#DF4895
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6A2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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