#6A2FB2#6A2FB2

#6A2FB2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.194 H 299.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#6A2FB2
RGBrgb(106, 47, 178)
HSLhsl(267, 58%, 44%)
HSVhsv(267, 74%, 70%)
CMYKcmyk(40.4%, 73.6%, 0%, 30.2%)
CIE-LABlab(34.62, 51.96, -59.37)
CIE-LCHlch(34.62, 78.90, 311.19°)
OKLaboklab(45.97% 0.0941 -0.1696)
OKLCHoklch(45.97% 0.194 299)
XYZxyz(14.9942, 8.3114, 42.9251)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FB2 #77B22F
analogous
#2F36B2 #6A2FB2 #AC2FB2
triadic
#6A2FB2 #B26A2F #2FB26A
tetradic
#6A2FB2 #B22F36 #77B22F #2FB2AC
square
#6A2FB2 #B22F36 #77B22F #2FB2AC
split-complementary
#6A2FB2 #B2AC2F #36B22F
monochromatic
#301551 #4D2282 #6A2FB2 #894ED0 #A97EDD

Accessibility & contrast

On white

7.89
#6A2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6A2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2FB2
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FB2#FFFFFF#000000##FFFFFF
##6A2FB21.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#59506E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6a2fb2;
/* rgb */ color: rgb(106, 47, 178);
/* oklch */ color: oklch(46.0% 0.194 299.0);
Tailwind
colors: {
  custom: {
    50: '#9b6dca',
    500: '#6a2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fb2;
$custom-light: #9b6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fb2",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 267.023,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45968,
    "c": 0.19396,
    "h": 299
  },
  "luminance": 0.08312
}

Semantic roles & 50–950 ramp

primary
#6A2FB2
secondary
#A2C677
accent
#E1469C
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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