#6A2FA2#6A2FA2

#6A2FA2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.177 H 303.4°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#6A2FA2
RGBrgb(106, 47, 162)
HSLhsl(271, 55%, 41%)
HSVhsv(271, 71%, 64%)
CMYKcmyk(34.6%, 71%, 0%, 36.5%)
CIE-LABlab(33.36, 47.98, -51.83)
CIE-LCHlch(33.36, 70.63, 312.79°)
OKLaboklab(44.68% 0.0971 -0.1475)
OKLCHoklch(44.68% 0.177 303.4)
XYZxyz(13.4804, 7.7058, 34.9526)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FA2 #67A22F
analogous
#312FA2 #6A2FA2 #A22FA0
triadic
#6A2FA2 #A26A2F #2FA26A
tetradic
#6A2FA2 #A2312F #67A22F #2FA0A2
square
#6A2FA2 #A2312F #67A22F #2FA0A2
split-complementary
#6A2FA2 #A0A22F #2FA231
monochromatic
#2C1343 #4B2173 #6A2FA2 #8945C9 #A775D7

Accessibility & contrast

On white

8.26
#6A2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6A2FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2FA2
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FA2#FFFFFF#000000##FFFFFF
##6A2FA21.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#5F4A65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a2fa2;
/* rgb */ color: rgb(106, 47, 162);
/* oklch */ color: oklch(44.7% 0.177 303.4);
Tailwind
colors: {
  custom: {
    50: '#996cbe',
    500: '#6a2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fa2;
$custom-light: #996cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fa2",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 270.783,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4468,
    "c": 0.17659,
    "h": 303.4
  },
  "luminance": 0.07706
}

Semantic roles & 50–950 ramp

primary
#6A2FA2
secondary
#95BF6E
accent
#DE4992
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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