#6D2CAB#6D2CAB

#6D2CAB is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.190 H 302.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#6D2CAB
RGBrgb(109, 44, 171)
HSLhsl(271, 59%, 42%)
HSVhsv(271, 74%, 67%)
CMYKcmyk(36.3%, 74.3%, 0%, 32.9%)
CIE-LABlab(33.97, 52.13, -56.24)
CIE-LCHlch(33.97, 76.69, 312.83°)
OKLaboklab(45.41% 0.1027 -0.1603)
OKLCHoklch(45.41% 0.19 302.7)
XYZxyz(14.5563, 7.9928, 39.2961)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D2CAB #6AAB2C
analogous
#2E2CAB #6D2CAB #AB2CAA
triadic
#6D2CAB #AB6D2C #2CAB6D
tetradic
#6D2CAB #AB2E2C #6AAB2C #2CAAAB
square
#6D2CAB #AB2E2C #6AAB2C #2CAAAB
split-complementary
#6D2CAB #AAAB2C #2CAB2E
monochromatic
#2F134A #4E1F7A #6D2CAB #8C45CF #AA76DC

Accessibility & contrast

On white

8.08
#6D2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6D2CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D2CAB
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D2CAB#FFFFFF#000000##FFFFFF
##6D2CAB1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#604C69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6d2cab;
/* rgb */ color: rgb(109, 44, 171);
/* oklch */ color: oklch(45.4% 0.190 302.7);
Tailwind
colors: {
  custom: {
    50: '#9c6cc5',
    500: '#6d2cab',
    950: '#000000',
  },
}
SCSS
$custom: #6d2cab;
$custom-light: #9c6cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6d2cab",
  "rgb": {
    "r": 109,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 270.709,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45414,
    "c": 0.1904,
    "h": 302.7
  },
  "luminance": 0.07993
}

Semantic roles & 50–950 ramp

primary
#6D2CAB
secondary
#98C36F
accent
#E24692
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6D2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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