#6D2FA8#6D2FA8

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

Color values

HEX#6D2FA8
RGBrgb(109, 47, 168)
HSLhsl(271, 56%, 42%)
HSVhsv(271, 72%, 66%)
CMYKcmyk(35.1%, 72%, 0%, 34.1%)
CIE-LABlab(34.21, 50.05, -54.05)
CIE-LCHlch(34.21, 73.66, 312.80°)
OKLaboklab(45.51% 0.1004 -0.1539)
OKLCHoklch(45.51% 0.184 303.1)
XYZxyz(14.3894, 8.1114, 37.8458)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D2FA8 #6AA82F
analogous
#312FA8 #6D2FA8 #A82FA7
triadic
#6D2FA8 #A86D2F #2FA86D
tetradic
#6D2FA8 #A8312F #6AA82F #2FA7A8
square
#6D2FA8 #A8312F #6AA82F #2FA7A8
split-complementary
#6D2FA8 #A7A82F #2FA831
monochromatic
#2F1448 #4E2278 #6D2FA8 #8C48CC #AA78D9

Accessibility & contrast

On white

8.01
#6D2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D2FA8
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D2FA8#FFFFFF#000000##FFFFFF
##6D2FA81.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0050A6
Tritanopia (blue-blind)
#614C68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6d2fa8;
/* rgb */ color: rgb(109, 47, 168);
/* oklch */ color: oklch(45.5% 0.184 303.1);
Tailwind
colors: {
  custom: {
    50: '#9c6dc3',
    500: '#6d2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #6d2fa8;
$custom-light: #9c6dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6d2fa8",
  "rgb": {
    "r": 109,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 270.744,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45514,
    "c": 0.18371,
    "h": 303.1
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

primary
#6D2FA8
secondary
#98C171
accent
#E04892
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6D2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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