#6C2EA8#6C2EA8

#6C2EA8 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.185 H 302.8°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#6C2EA8
RGBrgb(108, 46, 168)
HSLhsl(270, 57%, 42%)
HSVhsv(270, 73%, 66%)
CMYKcmyk(35.7%, 72.6%, 0%, 34.1%)
CIE-LABlab(33.92, 50.31, -54.53)
CIE-LCHlch(33.92, 74.20, 312.70°)
OKLaboklab(45.28% 0.1 -0.1553)
OKLCHoklch(45.28% 0.185 302.8)
XYZxyz(14.2276, 7.9693, 37.8269)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2EA8 #6AA82E
analogous
#2F2EA8 #6C2EA8 #A82EA7
triadic
#6C2EA8 #A86C2E #2EA86C
tetradic
#6C2EA8 #A82F2E #6AA82E #2EA7A8
square
#6C2EA8 #A82F2E #6AA82E #2EA7A8
split-complementary
#6C2EA8 #A7A82E #2EA82F
monochromatic
#2E1448 #4D2178 #6C2EA8 #8B47CD #A977DA

Accessibility & contrast

On white

8.10
#6C2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6C2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2EA8
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2EA8#FFFFFF#000000##FFFFFF
##6C2EA81.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#604C68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c2ea8;
/* rgb */ color: rgb(108, 46, 168);
/* oklch */ color: oklch(45.3% 0.185 302.8);
Tailwind
colors: {
  custom: {
    50: '#9b6cc3',
    500: '#6c2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #6c2ea8;
$custom-light: #9b6cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2ea8",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 270.492,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45277,
    "c": 0.18471,
    "h": 302.8
  },
  "luminance": 0.07969
}

Semantic roles & 50–950 ramp

primary
#6C2EA8
secondary
#98C270
accent
#E04893
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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