#6A2FAF#6A2FAF

#6A2FAF is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.191 H 299.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#6A2FAF
RGBrgb(106, 47, 175)
HSLhsl(268, 58%, 44%)
HSVhsv(268, 73%, 69%)
CMYKcmyk(39.4%, 73.1%, 0%, 31.4%)
CIE-LABlab(34.38, 51.21, -57.98)
CIE-LCHlch(34.38, 77.36, 311.45°)
OKLaboklab(45.72% 0.0947 -0.1655)
OKLCHoklch(45.72% 0.191 299.8)
XYZxyz(14.6963, 8.1922, 41.3561)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FAF #74AF2F
analogous
#2F34AF #6A2FAF #AA2FAF
triadic
#6A2FAF #AF6A2F #2FAF6A
tetradic
#6A2FAF #AF2F34 #74AF2F #2FAFAA
square
#6A2FAF #AF2F34 #74AF2F #2FAFAA
split-complementary
#6A2FAF #AFAA2F #34AF2F
monochromatic
#30154F #4D227F #6A2FAF #884CCF #A87CDC

Accessibility & contrast

On white

7.96
#6A2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6A2FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2FAF
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FAF#FFFFFF#000000##FFFFFF
##6A2FAF1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#5A4F6C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6a2faf;
/* rgb */ color: rgb(106, 47, 175);
/* oklch */ color: oklch(45.7% 0.191 299.8);
Tailwind
colors: {
  custom: {
    50: '#9b6dc8',
    500: '#6a2faf',
    950: '#000000',
  },
}
SCSS
$custom: #6a2faf;
$custom-light: #9b6dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2faf",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 267.656,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4572,
    "c": 0.19072,
    "h": 299.8
  },
  "luminance": 0.08192
}

Semantic roles & 50–950 ramp

primary
#6A2FAF
secondary
#A0C475
accent
#E1479A
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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