#6A2FB4#6A2FB4

#6A2FB4 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.196 H 298.5°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#6A2FB4
RGBrgb(106, 47, 180)
HSLhsl(267, 59%, 45%)
HSVhsv(267, 74%, 71%)
CMYKcmyk(41.1%, 73.9%, 0%, 29.4%)
CIE-LABlab(34.79, 52.47, -60.29)
CIE-LCHlch(34.79, 79.92, 311.03°)
OKLaboklab(46.13% 0.0936 -0.1723)
OKLCHoklch(46.13% 0.196 298.5)
XYZxyz(15.1965, 8.3923, 43.9904)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2FB4 #79B42F
analogous
#2F36B4 #6A2FB4 #AD2FB4
triadic
#6A2FB4 #B46A2F #2FB46A
tetradic
#6A2FB4 #B42F36 #79B42F #2FB4AD
square
#6A2FB4 #B42F36 #79B42F #2FB4AD
split-complementary
#6A2FB4 #B4AD2F #36B42F
monochromatic
#311653 #4D2283 #6A2FB4 #894FD1 #A980DE

Accessibility & contrast

On white

7.84
#6A2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6A2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2FB4
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2FB4#FFFFFF#000000##FFFFFF
##6A2FB41.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#58516F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a2fb4;
/* rgb */ color: rgb(106, 47, 180);
/* oklch */ color: oklch(46.1% 0.196 298.5);
Tailwind
colors: {
  custom: {
    50: '#9b6dcb',
    500: '#6a2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #6a2fb4;
$custom-light: #9b6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2fb4",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 266.617,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46134,
    "c": 0.19612,
    "h": 298.5
  },
  "luminance": 0.08392
}

Semantic roles & 50–950 ramp

primary
#6A2FB4
secondary
#A4C778
accent
#E2469D
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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