#6A2FB7#6A2FB7

#6A2FB7 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.199 H 297.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#6A2FB7
RGBrgb(106, 47, 183)
HSLhsl(266, 59%, 45%)
HSVhsv(266, 74%, 72%)
CMYKcmyk(42.1%, 74.3%, 0%, 28.2%)
CIE-LABlab(35.03, 53.23, -61.66)
CIE-LCHlch(35.03, 81.46, 310.80°)
OKLaboklab(46.39% 0.0929 -0.1764)
OKLCHoklch(46.39% 0.199 297.8)
XYZxyz(15.5054, 8.5158, 45.6174)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FB7 #7CB72F
analogous
#2F38B7 #6A2FB7 #AE2FB7
triadic
#6A2FB7 #B76A2F #2FB76A
tetradic
#6A2FB7 #B72F38 #7CB72F #2FB7AE
square
#6A2FB7 #B72F38 #7CB72F #2FB7AE
split-complementary
#6A2FB7 #B7AE2F #38B72F
monochromatic
#321656 #4E2286 #6A2FB7 #8951D2 #AA82DF

Accessibility & contrast

On white

7.77
#6A2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6A2FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2FB7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FB7#FFFFFF#000000##FFFFFF
##6A2FB71.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0051B4
Tritanopia (blue-blind)
#565271
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a2fb7;
/* rgb */ color: rgb(106, 47, 183);
/* oklch */ color: oklch(46.4% 0.199 297.8);
Tailwind
colors: {
  custom: {
    50: '#9c6dce',
    500: '#6a2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fb7;
$custom-light: #9c6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fb7",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 266.029,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46386,
    "c": 0.19935,
    "h": 297.8
  },
  "luminance": 0.08516
}

Semantic roles & 50–950 ramp

primary
#6A2FB7
secondary
#A6C87A
accent
#E2459E
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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