#6A2FAC#6A2FAC

#6A2FAC is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.187 H 300.6°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#6A2FAC
RGBrgb(106, 47, 172)
HSLhsl(268, 57%, 43%)
HSVhsv(268, 73%, 67%)
CMYKcmyk(38.4%, 72.7%, 0%, 32.5%)
CIE-LABlab(34.14, 50.46, -56.58)
CIE-LCHlch(34.14, 75.81, 311.73°)
OKLaboklab(45.48% 0.0953 -0.1614)
OKLCHoklch(45.48% 0.187 300.6)
XYZxyz(14.4049, 8.0756, 39.8216)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FAC #71AC2F
analogous
#2F32AC #6A2FAC #A82FAC
triadic
#6A2FAC #AC6A2F #2FAC6A
tetradic
#6A2FAC #AC2F32 #71AC2F #2FACA8
square
#6A2FAC #AC2F32 #71AC2F #2FACA8
split-complementary
#6A2FAC #ACA82F #32AC2F
monochromatic
#2F154C #4C227C #6A2FAC #884BCE #A87BDB

Accessibility & contrast

On white

8.03
#6A2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6A2FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2FAC
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FAC#FFFFFF#000000##FFFFFF
##6A2FAC1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#5B4E6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6a2fac;
/* rgb */ color: rgb(106, 47, 172);
/* oklch */ color: oklch(45.5% 0.187 300.6);
Tailwind
colors: {
  custom: {
    50: '#9a6dc6',
    500: '#6a2fac',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fac;
$custom-light: #9a6dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fac",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 268.32,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45476,
    "c": 0.18746,
    "h": 300.6
  },
  "luminance": 0.08076
}

Semantic roles & 50–950 ramp

primary
#6A2FAC
secondary
#9EC374
accent
#E04798
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6A2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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