#6A2FA5#6A2FA5

#6A2FA5 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.180 H 302.5°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#6A2FA5
RGBrgb(106, 47, 165)
HSLhsl(270, 56%, 42%)
HSVhsv(270, 72%, 65%)
CMYKcmyk(35.8%, 71.5%, 0%, 35.3%)
CIE-LABlab(33.59, 48.72, -53.27)
CIE-LCHlch(33.59, 72.19, 312.45°)
OKLaboklab(44.92% 0.0966 -0.1517)
OKLCHoklch(44.92% 0.18 302.5)
XYZxyz(13.7503, 7.8138, 36.3738)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FA5 #6AA52F
analogous
#2F2FA5 #6A2FA5 #A52FA5
triadic
#6A2FA5 #A56A2F #2FA56A
tetradic
#6A2FA5 #A52F2F #6AA52F #2FA5A5
square
#6A2FA5 #A52F2F #6AA52F #2FA5A5
split-complementary
#6A2FA5 #A5A52F #2FA52F
monochromatic
#2D1446 #4B2175 #6A2FA5 #8947CB #A776D8

Accessibility & contrast

On white

8.19
#6A2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A2FA5
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FA5#FFFFFF#000000##FFFFFF
##6A2FA51.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#5E4B67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a2fa5;
/* rgb */ color: rgb(106, 47, 165);
/* oklch */ color: oklch(44.9% 0.180 302.5);
Tailwind
colors: {
  custom: {
    50: '#9a6dc0',
    500: '#6a2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fa5;
$custom-light: #9a6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fa5",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 270,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44915,
    "c": 0.17986,
    "h": 302.5
  },
  "luminance": 0.07814
}

Semantic roles & 50–950 ramp

primary
#6A2FA5
secondary
#98C070
accent
#DF4994
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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