#6A2FA1#6A2FA1

#6A2FA1 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.175 H 303.7°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#6A2FA1
RGBrgb(106, 47, 161)
HSLhsl(271, 55%, 41%)
HSVhsv(271, 71%, 63%)
CMYKcmyk(34.2%, 70.8%, 0%, 36.9%)
CIE-LABlab(33.29, 47.74, -51.35)
CIE-LCHlch(33.29, 70.11, 312.91°)
OKLaboklab(44.6% 0.0973 -0.1461)
OKLCHoklch(44.6% 0.175 303.7)
XYZxyz(13.3919, 7.6704, 34.4863)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FA1 #66A12F
analogous
#312FA1 #6A2FA1 #A12F9F
triadic
#6A2FA1 #A16A2F #2FA16A
tetradic
#6A2FA1 #A1312F #66A12F #2F9FA1
square
#6A2FA1 #A1312F #66A12F #2F9FA1
split-complementary
#6A2FA1 #9FA12F #2FA131
monochromatic
#2C1342 #4B2172 #6A2FA1 #8945C9 #A774D6

Accessibility & contrast

On white

8.29
#6A2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6A2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2FA1
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FA1#FFFFFF#000000##FFFFFF
##6A2FA11.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#004E9F
Tritanopia (blue-blind)
#5F4A64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a2fa1;
/* rgb */ color: rgb(106, 47, 161);
/* oklch */ color: oklch(44.6% 0.175 303.7);
Tailwind
colors: {
  custom: {
    50: '#996cbe',
    500: '#6a2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fa1;
$custom-light: #996cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fa1",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 271.053,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44602,
    "c": 0.17549,
    "h": 303.7
  },
  "luminance": 0.0767
}

Semantic roles & 50–950 ramp

primary
#6A2FA1
secondary
#94BE6E
accent
#DE4A91
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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