#6A2FA0#6A2FA0

#6A2FA0 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.174 H 304.0°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#6A2FA0
RGBrgb(106, 47, 160)
HSLhsl(271, 55%, 41%)
HSVhsv(271, 71%, 63%)
CMYKcmyk(33.7%, 70.6%, 0%, 37.3%)
CIE-LABlab(33.21, 47.49, -50.87)
CIE-LCHlch(33.21, 69.59, 313.03°)
OKLaboklab(44.53% 0.0974 -0.1446)
OKLCHoklch(44.53% 0.174 304)
XYZxyz(13.3041, 7.6353, 34.0238)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FA0 #65A02F
analogous
#312FA0 #6A2FA0 #A02F9D
triadic
#6A2FA0 #A06A2F #2FA06A
tetradic
#6A2FA0 #A0312F #65A02F #2F9DA0
square
#6A2FA0 #A0312F #65A02F #2F9DA0
split-complementary
#6A2FA0 #9DA02F #2FA031
monochromatic
#2B1341 #4B2171 #6A2FA0 #8944C8 #A773D6

Accessibility & contrast

On white

8.31
#6A2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A2FA0
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FA0#FFFFFF#000000##FFFFFF
##6A2FA01.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA3
Deuteranopia (green-blind)
#004E9E
Tritanopia (blue-blind)
#604964
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a2fa0;
/* rgb */ color: rgb(106, 47, 160);
/* oklch */ color: oklch(44.5% 0.174 304.0);
Tailwind
colors: {
  custom: {
    50: '#996cbd',
    500: '#6a2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fa0;
$custom-light: #996cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fa0",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 271.327,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44525,
    "c": 0.17441,
    "h": 304
  },
  "luminance": 0.07635
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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